mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-09 01:21:06 +00:00
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:
committed by
Marvin Scholz
parent
74c735ab10
commit
901a25e0d1
@@ -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 */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user