History

avfilter/vf_lenscorrection: fix far edges with nearest interpolation

Paul B Mahol committed 5 years ago

Commit 87598431 parent e2210821 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_lenscorrection.c+1−1
@@ -97,7 +97,7 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int job, int nb_jobs) · 96 unmodified lines
9797 const int64_t radius_mult = td->correction[j + i*w];
9898 const int x = xcenter + ((radius_mult * off_x + (1<<23))>>24);
9999 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;
101101 *out++ = isvalid ? indata[y * inlinesize + x] : 0;
102102 }
103103 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t