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:
parent
096d96ffda
commit
d3d715ff13
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user