diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index b03eb94167..b3955f26de 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -490,7 +490,6 @@ static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb) } } if (v->broadcast) { // Pulldown may be present - v->s.avctx->framerate.num *= 2; v->s.avctx->ticks_per_frame = 2; } } diff --git a/libavcodec/vc1_parser.c b/libavcodec/vc1_parser.c index 33e672fa0f..3a2308ecc6 100644 --- a/libavcodec/vc1_parser.c +++ b/libavcodec/vc1_parser.c @@ -112,6 +112,8 @@ static void vc1_extract_header(AVCodecParserContext *s, AVCodecContext *avctx, break; } + if (avctx->framerate.num) + avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1})); } static int vc1_parse(AVCodecParserContext *s,