[FFmpeg-cvslog] avfilter/vsrc_testsrc: fix artifacts with odd height

Michael Niedermayer git at videolan.org
Mon Jun 24 23:55:29 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jun 24 23:21:17 2013 +0200| [8a7aabe80b9b2425d0f95c6e6685c5e7aeb5801b] | committer: Michael Niedermayer

avfilter/vsrc_testsrc: fix artifacts with odd height

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavfilter/vsrc_testsrc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index 6e0e19b..be3266a 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -575,7 +575,7 @@ static void test_fill_picture(AVFilterContext *ctx, AVFrame *frame)
     }
 
     /* draw sliding color line */
-    p0 = p = data + frame->linesize[0] * height * 3/4;
+    p0 = p = data + frame->linesize[0] * (height * 3/4);
     grad = (256 * test->nb_frame * test->time_base.num / test->time_base.den) %
         GRADIENT_SIZE;
     rgrad = 0;



More information about the ffmpeg-cvslog mailing list