Fixes #8242
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -296,9 +296,11 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) · 295 unmodified lines | ||
| 296 | 296 | src + (width - 2) * bpc, src + (width - 2) * bpc, |
| 297 | 297 | src + (width - 2) * bpc + ph * stride, src + (width - 1) * bpc + ph * stride, src + (width - 2) * bpc + ph * stride}; |
| 298 | 298 | |
| 299 | − s->filter(dst, src, 1, threshold, coordinateslb, s->coordinates, s->max); | |
| 300 | − s->filter(dst + 1 * bpc, src + 1 * bpc, width - 2, threshold, coordinates, s->coordinates, s->max); | |
| 301 | − s->filter(dst + (width - 1) * bpc, src + (width - 1) * bpc, 1, threshold, coordinatesrb, s->coordinates, s->max); | |
| 299 | + s->filter(dst, src, 1, threshold, coordinateslb, s->coordinates, s->max); | |
| 300 | + if (width > 1) { | |
| 301 | + s->filter(dst + 1 * bpc, src + 1 * bpc, width - 2, threshold, coordinates, s->coordinates, s->max); | |
| 302 | + s->filter(dst + (width - 1) * bpc, src + (width - 1) * bpc, 1, threshold, coordinatesrb, s->coordinates, s->max); | |
| 303 | + } | |
| 302 | 304 | |
| 303 | 305 | src += stride; |
| 304 | 306 | dst += dstride; |