Browse Source

avfilter/vf_v360: fix possible out of range values

tags/n4.4
Paul B Mahol 5 years ago
parent
commit
3a035a8cd2
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      libavfilter/vf_v360.c

+ 3
- 3
libavfilter/vf_v360.c View File

@@ -763,12 +763,12 @@ static inline int mod(int a, int b)
static inline int reflecty(int y, int h)
{
if (y < 0) {
return -y;
y = -y;
} else if (y >= h) {
return 2 * h - 1 - y;
y = 2 * h - 1 - y;
}

return y;
return av_clip(y, 0, h - 1);
}

/**


Loading…
Cancel
Save