Unified · Split
| @@ -97,7 +97,7 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs) · 96 unmodified lines | ||
| 97 | 97 | const int64_t radius_mult = td->correction[j + i*w]; |
| 98 | 98 | const int x = xcenter + ((radius_mult * off_x + (1<<23))>>24); |
| 99 | 99 | const int y = ycenter + ((radius_mult * off_y + (1<<23))>>24); |
| 100 | − const char isvalid = x > 0 && x < w - 1 && y > 0 && y < h - 1; | |
| 100 | + const char isvalid = x >= 0 && x < w && y >= 0 && y < h; | |
| 101 | 101 | *out++ = isvalid ? indata[y * inlinesize + x] : 0; |
| 102 | 102 | } |
| 103 | 103 | } |