1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avfilter/vsrc_testsrc: fix colorchart black stripe

Fixed blackstripe on bottom or segmentation fault in case
when patch width and height differ.

Signed-off-by: Vladimir Petrov <vppetrovmms@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Vladimir Petrov 2024-01-09 18:42:19 +02:00 committed by Michael Niedermayer
parent bfa1b7577d
commit c915dc4c50
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -1977,7 +1977,7 @@ static void colorchart_fill_picture(AVFilterContext *ctx, AVFrame *frame)
const int w = colorchart_presets[preset].w;
const int h = colorchart_presets[preset].h;
const int pw = test->pw;
const int ph = test->pw;
const int ph = test->ph;
for (int y = 0; y < h; y++) {
for (int x = 0; x < w; x++) {