mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 02:20:07 +01:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user