Commit 0b874252 authored by James Almer's avatar James Almer

avcodec/av1_parser: export bitstream timing info when available

Based on h264_parser code.
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 72ec3358
......@@ -157,6 +157,9 @@ static int av1_parser_parse(AVCodecParserContext *ctx,
av_assert2(ctx->format != AV_PIX_FMT_NONE);
}
if (avctx->framerate.num)
avctx->time_base = av_inv_q(av_mul_q(avctx->framerate, (AVRational){avctx->ticks_per_frame, 1}));
end:
ff_cbs_fragment_reset(s->cbc, td);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment