[FFmpeg-cvslog] avfilter/yadif_cuda: Fix time base for large denominators
Philip Langdale
git at videolan.org
Sat May 29 23:22:50 EEST 2021
ffmpeg | branch: master | Philip Langdale <philipl at overt.org> | Sat May 29 13:15:55 2021 -0700| [8f8a7e491da5a4d5f6809dd1e56056c46f0cb123] | committer: Philip Langdale
avfilter/yadif_cuda: Fix time base for large denominators
This is the same fix applied to regular yadif.
Signed-off-by: Philip Langdale <philipl at overt.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8f8a7e491da5a4d5f6809dd1e56056c46f0cb123
---
libavfilter/vf_yadif_cuda.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/libavfilter/vf_yadif_cuda.c b/libavfilter/vf_yadif_cuda.c
index 4e41c8b554..bbdbfc1adc 100644
--- a/libavfilter/vf_yadif_cuda.c
+++ b/libavfilter/vf_yadif_cuda.c
@@ -297,10 +297,9 @@ static int config_output(AVFilterLink *link)
goto exit;
}
- link->time_base.num = ctx->inputs[0]->time_base.num;
- link->time_base.den = ctx->inputs[0]->time_base.den * 2;
- link->w = ctx->inputs[0]->w;
- link->h = ctx->inputs[0]->h;
+ link->time_base = av_mul_q(ctx->inputs[0]->time_base, (AVRational){1, 2});
+ link->w = ctx->inputs[0]->w;
+ link->h = ctx->inputs[0]->h;
if(y->mode & 1)
link->frame_rate = av_mul_q(ctx->inputs[0]->frame_rate,
More information about the ffmpeg-cvslog
mailing list