mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/av1_parser: export bitstream timing info when available
Based on h264_parser code. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
72ec3358f4
commit
0b8742521f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue