Browse Source

fixed block size selection

Originally committed as revision 1093 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Fabrice Bellard 23 years ago
parent
commit
64c133898a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/wmadec.c

+ 1
- 1
libavcodec/wmadec.c View File

@@ -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;


Loading…
Cancel
Save