History

avfilter/vsrc_testsrc: fix colorchart black stripe

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

Vladimir Petrov committed 2 years ago

Commit c915dc41 parent bfa1b751 file · +1 −1Browse files

Unified · Split

libavfilter/vsrc_testsrc.c+1−1
@@ -1977,7 +1977,7 @@ static void colorchart_fill_picture(AVFilterContext *ctx, AVFrame *frame) · 1976 unmodified lines
19771977 const int w = colorchart_presets[preset].w;
19781978 const int h = colorchart_presets[preset].h;
19791979 const int pw = test->pw;
1980− const int ph = test->pw;
1980+ const int ph = test->ph;
19811981
19821982 for (int y = 0; y < h; y++) {
19831983 for (int x = 0; x < w; x++) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t