avfilter/vsrc_testsrc: fix artifacts with odd height
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Jun 2013 21:21:17 +0000 (23:21 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Jun 2013 21:21:17 +0000 (23:21 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vsrc_testsrc.c

index 6e0e19b..be3266a 100644 (file)
@@ -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;