You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
fixed block size selection
Originally committed as revision 1093 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -270,7 +270,7 @@ static int wma_decode_init(AVCodecContext * avctx)
|
|||||||
/* compute MDCT block size */
|
/* compute MDCT block size */
|
||||||
if (s->sample_rate <= 16000) {
|
if (s->sample_rate <= 16000) {
|
||||||
s->frame_len_bits = 9;
|
s->frame_len_bits = 9;
|
||||||
} else if (s->sample_rate <= 32000) {
|
} else if (s->sample_rate <= 32000 && s->version == 1) {
|
||||||
s->frame_len_bits = 10;
|
s->frame_len_bits = 10;
|
||||||
} else {
|
} else {
|
||||||
s->frame_len_bits = 11;
|
s->frame_len_bits = 11;
|
||||||
|
Reference in New Issue
Block a user