[FFmpeg-cvslog] avfilter/vsrc_testsrc: do not round down width and height for color src

Marton Balint git at videolan.org
Tue May 14 22:46:10 EEST 2024


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Wed May  8 09:40:57 2024 +0200| [77fc047bd91eaef615a2c36b93ee23d7d27e7d25] | committer: Marton Balint

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 at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=77fc047bd91eaef615a2c36b93ee23d7d27e7d25
---

 libavfilter/vsrc_testsrc.c | 2 --
 1 file changed, 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);
 



More information about the ffmpeg-cvslog mailing list