1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

mpeg4videodec: Recalculate timebase in case of guessing time increment bits

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-14 03:02:33 +02:00
parent 096d96ffda
commit d3d715ff13

View File

@ -1963,6 +1963,9 @@ static int decode_vop_header(MpegEncContext *s, GetBitContext *gb){
}
av_log(s->avctx, AV_LOG_ERROR, "my guess is %d bits ;)\n",s->time_increment_bits);
if (s->avctx->time_base.den && 4*s->avctx->time_base.den < 1<<s->time_increment_bits) {
s->avctx->time_base.den = 1<<s->time_increment_bits;
}
}
if(IS_3IV1) time_increment= get_bits1(gb); //FIXME investigate further