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:
parent
bfa1b7577d
commit
c915dc4c50
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user