avfilter/vf_scale_cuda: fix inverted downscaling check

Signed-off-by: Niklas Haas <git@haasn.dev>
(cherry picked from commit 6baf561303)
Signed-off-by: Marvin Scholz <epirat07@gmail.com>
This commit is contained in:
Niklas Haas
2026-06-26 17:24:36 +02:00
committed by Marvin Scholz
parent 74c735ab10
commit 901a25e0d1

View File

@@ -420,7 +420,7 @@ static av_cold int init_processing_chain(AVFilterContext *ctx, int in_width, int
if (s->interp_algo == INTERP_ALGO_NEAREST) {
s->use_filters = 0;
} else if (s->use_filters < 0 && (in_width < out_width || in_height < out_height))
} else if (s->use_filters < 0 && (out_width < in_width || out_height < in_height))
s->use_filters = 1; /* downscaling; needed for anti-aliasing */
}