Commit dab203c1 authored by bellard's avatar bellard

fixed block size selection


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1093 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b5846574
......@@ -270,7 +270,7 @@ static int wma_decode_init(AVCodecContext * avctx)
/* compute MDCT block size */
if (s->sample_rate <= 16000) {
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;
} else {
s->frame_len_bits = 11;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment