From 950b082f26e8c39dd11661870302b76fd4d604ca Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 31 May 2024 20:44:47 +0200 Subject: [PATCH] avfilter/ardftsrc_template: remove excessive scaling --- libavfilter/ardftsrc_template.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/ardftsrc_template.c b/libavfilter/ardftsrc_template.c index 07282d4082..b9eab9feff 100644 --- a/libavfilter/ardftsrc_template.c +++ b/libavfilter/ardftsrc_template.c @@ -77,12 +77,12 @@ typedef struct fn(StateContext) { static ftype fn(get_scale)(ftype in_size, ftype out_size) { - return F(1.0) / out_size; + return F(1.0); } static ftype fn(get_iscale)(ftype in_size, ftype out_size) { - return F(1.0) * out_size / in_size; + return F(1.0) / in_size; } static void fn(src_uninit)(AVFilterContext *ctx)