ffmpeg flac does actually support up to 192k sample rates, and my test file seems to decode fine, so lets enable it. Note that using 192khz is over 6 times slower then 44.1khz on my test file, so I recommend sticking to more reasonable bitrates.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28609 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7270e5eafd
commit
b965c24c0b
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@
|
|||
#endif
|
||||
|
||||
static const int sample_rate_table[] ICONST_ATTR =
|
||||
{ 0, 0, 0, 0,
|
||||
{ 0, 88200, 176400, 192000,
|
||||
8000, 16000, 22050, 24000, 32000, 44100, 48000, 96000,
|
||||
0, 0, 0, 0 };
|
||||
|
||||
|
@ -454,7 +454,7 @@ static int decode_frame(FLACContext *s,
|
|||
|
||||
if (sample_rate_code == 0){
|
||||
samplerate= s->samplerate;
|
||||
}else if ((sample_rate_code > 3) && (sample_rate_code < 12))
|
||||
}else if ((sample_rate_code < 12))
|
||||
samplerate = sample_rate_table[sample_rate_code];
|
||||
else if (sample_rate_code == 12)
|
||||
samplerate = get_bits(&s->gb, 8) * 1000;
|
||||
|
|
Loading…
Reference in a new issue