Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2012/10/14 10:02:33... | ... |
@@ -1963,6 +1963,9 @@ static int decode_vop_header(MpegEncContext *s, GetBitContext *gb){ |
1963 | 1963 |
} |
1964 | 1964 |
|
1965 | 1965 |
av_log(s->avctx, AV_LOG_ERROR, "my guess is %d bits ;)\n",s->time_increment_bits); |
1966 |
+ if (s->avctx->time_base.den && 4*s->avctx->time_base.den < 1<<s->time_increment_bits) { |
|
1967 |
+ s->avctx->time_base.den = 1<<s->time_increment_bits; |
|
1968 |
+ } |
|
1966 | 1969 |
} |
1967 | 1970 |
|
1968 | 1971 |
if(IS_3IV1) time_increment= get_bits1(gb); //FIXME investigate further |