[FFmpeg-cvslog] avfilter/vf_nnedi: fix time base for large denominators

Paul B Mahol git at videolan.org
Fri Jul 16 10:11:36 EEST 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jul 16 09:09:13 2021 +0200| [03a8d9c7fdf814bb551b608ca959968629a21ecb] | committer: Paul B Mahol

avfilter/vf_nnedi: fix time base for large denominators

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=03a8d9c7fdf814bb551b608ca959968629a21ecb
---

 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;
 



More information about the ffmpeg-cvslog mailing list