Commit 8a7aabe8 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vsrc_testsrc: fix artifacts with odd height

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bbe26eff
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment