summaryrefslogtreecommitdiff
path: root/libavcodec/wmadec.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-10-28 01:42:05 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-10-28 01:42:05 +0000
commit64c133898a39bee2a96227d48ca42d1eb554a153 (patch)
tree61be39b96176cfb13c639170a92fc7d83b1d436d /libavcodec/wmadec.c
parente095026ab4845e97c61dbf3c3bda149f9195398d (diff)
fixed block size selection
Originally committed as revision 1093 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r--libavcodec/wmadec.c2
1 files changed, 1 insertions, 1 deletions
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;