[FFmpeg-cvslog] avfilter/vf_lenscorrection: fix far edges with nearest interpolation
Paul B Mahol
git at videolan.org
Mon Jan 25 13:36:56 EET 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Jan 25 11:38:58 2021 +0100| [87598435aacdebccf42112ca498b52f96d1c1b79] | committer: Paul B Mahol
avfilter/vf_lenscorrection: fix far edges with nearest interpolation
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87598435aacdebccf42112ca498b52f96d1c1b79
---
libavfilter/vf_lenscorrection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_lenscorrection.c b/libavfilter/vf_lenscorrection.c
index 9df549d51b..8f2be9fefa 100644
--- a/libavfilter/vf_lenscorrection.c
+++ b/libavfilter/vf_lenscorrection.c
@@ -97,7 +97,7 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs)
const int64_t radius_mult = td->correction[j + i*w];
const int x = xcenter + ((radius_mult * off_x + (1<<23))>>24);
const int y = ycenter + ((radius_mult * off_y + (1<<23))>>24);
- const char isvalid = x > 0 && x < w - 1 && y > 0 && y < h - 1;
+ const char isvalid = x >= 0 && x < w && y >= 0 && y < h;
*out++ = isvalid ? indata[y * inlinesize + x] : 0;
}
}
More information about the ffmpeg-cvslog
mailing list