mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vsrc_testsrc: fix artifacts with odd height
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
bbe26eff22
commit
8a7aabe80b
@ -575,7 +575,7 @@ static void test_fill_picture(AVFilterContext *ctx, AVFrame *frame)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* draw sliding color line */
|
/* 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) %
|
grad = (256 * test->nb_frame * test->time_base.num / test->time_base.den) %
|
||||||
GRADIENT_SIZE;
|
GRADIENT_SIZE;
|
||||||
rgrad = 0;
|
rgrad = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user