From 03a8d9c7fdf814bb551b608ca959968629a21ecb Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 16 Jul 2021 09:09:13 +0200 Subject: [PATCH] avfilter/vf_nnedi: fix time base for large denominators --- libavfilter/vf_nnedi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavfilter/vf_nnedi.c b/libavfilter/vf_nnedi.c index 6096e88812..95b736afc1 100644 --- a/libavfilter/vf_nnedi.c +++ b/libavfilter/vf_nnedi.c @@ -168,8 +168,7 @@ static int config_output(AVFilterLink *outlink) { AVFilterContext *ctx = outlink->src; - outlink->time_base.num = ctx->inputs[0]->time_base.num; - outlink->time_base.den = ctx->inputs[0]->time_base.den * 2; + outlink->time_base = av_mul_q(ctx->inputs[0]->time_base, (AVRational){1, 2}); outlink->w = ctx->inputs[0]->w; outlink->h = ctx->inputs[0]->h;