Skip to content

Commit

Permalink
avfilter/vsrc_testsrc: fix colorchart black stripe
Browse files Browse the repository at this point in the history
Fixed blackstripe on bottom or segmentation fault in case
when patch width and height differ.

Signed-off-by: Vladimir Petrov <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
vppetrovmms authored and michaelni committed Jan 12, 2024
1 parent bfa1b75 commit c915dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavfilter/vsrc_testsrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit c915dc4

Please sign in to comment.