Origin commit data
------------------
Branch: master
Commit: c3278d9c3e
Author: martii <m4rtii@gmx.de>
Date: 2014-03-21 (Fri, 21 Mar 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2014-03-21 23:27:37 +01:00
parent 21e718b440
commit 0fc91c1479
10 changed files with 14 additions and 71 deletions

View File

@@ -26,32 +26,31 @@ static inline int aac_get_sample_rate_index(uint32_t sample_rate)
{
if (96000 <= sample_rate)
return 0;
else if (88200 <= sample_rate)
if (88200 <= sample_rate)
return 1;
else if (64000 <= sample_rate)
if (64000 <= sample_rate)
return 2;
else if (48000 <= sample_rate)
if (48000 <= sample_rate)
return 3;
else if (44100 <= sample_rate)
if (44100 <= sample_rate)
return 4;
else if (32000 <= sample_rate)
if (32000 <= sample_rate)
return 5;
else if (24000 <= sample_rate)
if (24000 <= sample_rate)
return 6;
else if (22050 <= sample_rate)
if (22050 <= sample_rate)
return 7;
else if (16000 <= sample_rate)
if (16000 <= sample_rate)
return 8;
else if (12000 <= sample_rate)
if (12000 <= sample_rate)
return 9;
else if (11025 <= sample_rate)
if (11025 <= sample_rate)
return 10;
else if (8000 <= sample_rate)
if (8000 <= sample_rate)
return 11;
else if (7350 <= sample_rate)
if (7350 <= sample_rate)
return 12;
else
return 13;
return 13;
}
#endif