Fixed blackstripe on bottom or segmentation fault in case when patch width and height differ.
Unified · Split
| @@ -1977,7 +1977,7 @@ static void colorchart_fill_picture(AVFilterContext *ctx, AVFrame *frame) · 1976 unmodified lines | |||
| 1977 | const int w = colorchart_presets[preset].w; | 1977 | const int w = colorchart_presets[preset].w; |
| 1978 | const int h = colorchart_presets[preset].h; | 1978 | const int h = colorchart_presets[preset].h; |
| 1979 | const int pw = test->pw; | 1979 | const int pw = test->pw; |
| 1980 | const int ph = test->pw; | 1980 | const int ph = test->ph; |
| 1981 | 1981 | ||
| 1982 | for (int y = 0; y < h; y++) { | 1982 | for (int y = 0; y < h; y++) { |
| 1983 | for (int x = 0; x < w; x++) { | 1983 | for (int x = 0; x < w; x++) { |