diff options
author | Sascha Sommer <saschasommer@freenet.de> | 2011-01-08 15:38:14 +0000 |
---|---|---|
committer | Sascha Sommer <saschasommer@freenet.de> | 2011-01-08 15:38:14 +0000 |
commit | b86dd1bf6d265efe490be91b5a77aaba7a35e755 (patch) | |
tree | 55f160d50406c4fd728f9d39f272e1153ced2d8f | |
parent | d7fa58c049bbc923efa048282084eccbd9f4890f (diff) | |
download | ffmpeg-b86dd1bf6d265efe490be91b5a77aaba7a35e755.tar.gz |
add support for files that do not allow more than 4 subframes
Originally committed as revision 26267 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/wmaprodec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c index 62e36e2ba4..0e5ad561ed 100644 --- a/libavcodec/wmaprodec.c +++ b/libavcodec/wmaprodec.c @@ -311,7 +311,7 @@ static av_cold int decode_init(AVCodecContext *avctx) /** subframe info */ log2_max_num_subframes = ((s->decode_flags & 0x38) >> 3); s->max_num_subframes = 1 << log2_max_num_subframes; - if (s->max_num_subframes == 16) + if (s->max_num_subframes == 16 || s->max_num_subframes == 4) s->max_subframe_len_bit = 1; s->subframe_len_bits = av_log2(log2_max_num_subframes) + 1; |