avfilter/ardftsrc_template: remove excessive scaling

This commit is contained in:
Paul B Mahol 2024-05-31 20:44:47 +02:00
parent af4b185960
commit 950b082f26

View File

@ -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)