mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
add support for files that do not allow more than 4 subframes
Originally committed as revision 26267 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d7fa58c049
commit
b86dd1bf6d
@ -311,7 +311,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
|
|||||||
/** subframe info */
|
/** subframe info */
|
||||||
log2_max_num_subframes = ((s->decode_flags & 0x38) >> 3);
|
log2_max_num_subframes = ((s->decode_flags & 0x38) >> 3);
|
||||||
s->max_num_subframes = 1 << log2_max_num_subframes;
|
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->max_subframe_len_bit = 1;
|
||||||
s->subframe_len_bits = av_log2(log2_max_num_subframes) + 1;
|
s->subframe_len_bits = av_log2(log2_max_num_subframes) + 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user