Unified · Split
| @@ -337,7 +337,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 336 unmodified lines | ||
| 337 | 337 | s->deblockv(dst + x * s->bpc, out->linesize[plane], |
| 338 | 338 | FFMIN(block, height), s->ath, s->bth, s->gth, s->dth, s->max); |
| 339 | 339 | |
| 340 | − for (y = block; y < height; y += block) { | |
| 340 | + for (y = block; y < height - block; y += block) { | |
| 341 | 341 | dst += out->linesize[plane] * block; |
| 342 | 342 | |
| 343 | 343 | s->deblockh(dst, out->linesize[plane], |
| @@ -353,6 +353,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 9 unmodified lines | ||
| 353 | 353 | s->ath, s->bth, s->gth, s->dth, s->max); |
| 354 | 354 | } |
| 355 | 355 | } |
| 356 | + | |
| 357 | + dst += out->linesize[plane] * block; | |
| 358 | + for (x = block; x < width; x += block) | |
| 359 | + s->deblockv(dst + x * s->bpc, out->linesize[plane], | |
| 360 | + FFMIN(block, height - y), s->ath, s->bth, s->gth, s->dth, s->max); | |
| 361 | + | |
| 356 | 362 | } |
| 357 | 363 | |
| 358 | 364 | if (in != out) |