From 64c133898a39bee2a96227d48ca42d1eb554a153 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Mon, 28 Oct 2002 01:42:05 +0000 Subject: [PATCH] fixed block size selection Originally committed as revision 1093 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/wmadec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index da8707f07b..0eef66c6bd 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -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;