From b86dd1bf6d265efe490be91b5a77aaba7a35e755 Mon Sep 17 00:00:00 2001 From: Sascha Sommer Date: Sat, 8 Jan 2011 15:38:14 +0000 Subject: [PATCH] add support for files that do not allow more than 4 subframes Originally committed as revision 26267 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/wmaprodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;