diff options
author | Marton Balint <cus@passwd.hu> | 2024-05-08 09:40:57 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2024-05-14 21:07:37 +0200 |
commit | 77fc047bd91eaef615a2c36b93ee23d7d27e7d25 (patch) | |
tree | 5cf612d9894124e732c1d2fb0c4e5d735ba09fd1 /libavfilter | |
parent | 20fbc07af1ebd5a68b8fd1203ceb4cab60bd7328 (diff) | |
download | ffmpeg-77fc047bd91eaef615a2c36b93ee23d7d27e7d25.tar.gz |
avfilter/vsrc_testsrc: do not round down width and height for color src
ff_draw_rectangle handles subsampling since 2013.
Fixes ticket #10989.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vsrc_testsrc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 41c2e70068..4dc12c8a01 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -260,8 +260,6 @@ static int color_config_props(AVFilterLink *inlink) inlink->color_range, 0); ff_draw_color(&test->draw, &test->color, test->color_rgba); - test->w = ff_draw_round_to_sub(&test->draw, 0, -1, test->w); - test->h = ff_draw_round_to_sub(&test->draw, 1, -1, test->h); if (av_image_check_size(test->w, test->h, 0, ctx) < 0) return AVERROR(EINVAL); |