diff options
Diffstat (limited to 'libavcodec/librav1e.c')
-rw-r--r-- | libavcodec/librav1e.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libavcodec/librav1e.c b/libavcodec/librav1e.c index 08affabe3e..56539435a7 100644 --- a/libavcodec/librav1e.c +++ b/libavcodec/librav1e.c @@ -219,10 +219,15 @@ static av_cold int librav1e_encode_init(AVCodecContext *avctx) avctx->framerate.den, avctx->framerate.num }); } else { +FF_DISABLE_DEPRECATION_WARNINGS rav1e_config_set_time_base(cfg, (RaRational) { - avctx->time_base.num * avctx->ticks_per_frame, - avctx->time_base.den + avctx->time_base.num +#if FF_API_TICKS_PER_FRAME + * avctx->ticks_per_frame +#endif + , avctx->time_base.den }); +FF_ENABLE_DEPRECATION_WARNINGS } if ((avctx->flags & AV_CODEC_FLAG_PASS1 || avctx->flags & AV_CODEC_FLAG_PASS2) && !avctx->bit_rate) { |