aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-01-25 20:00:53 +0100
committerPaul B Mahol <onemda@gmail.com>2020-01-25 20:00:53 +0100
commit4b4bcb126c303619e35f29e16caaa2e8962cf34d (patch)
treeebaa4b447e4d5cd65c2198b58f613cab4cc9fc29
parent75d1d9eb349462bf72ed38004c06a53e0b79173c (diff)
downloadffmpeg-4b4bcb126c303619e35f29e16caaa2e8962cf34d.tar.gz
avfilter/vf_v360: do not remap alpha plane if that will be overwritten later
-rw-r--r--libavfilter/vf_v360.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c
index 6d476c6392..de79fcdcf2 100644
--- a/libavfilter/vf_v360.c
+++ b/libavfilter/vf_v360.c
@@ -285,7 +285,7 @@ static int remap##ws##_##bits##bit_slice(AVFilterContext *ctx, void *arg, int jo
const int slice_start = (height * jobnr ) / nb_jobs; \
const int slice_end = (height * (jobnr + 1)) / nb_jobs; \
\
- for (int y = slice_start; y < slice_end; y++) { \
+ for (int y = slice_start; y < slice_end && !mask; y++) { \
const int16_t *const u = s->u[map] + y * uv_linesize * ws * ws; \
const int16_t *const v = s->v[map] + y * uv_linesize * ws * ws; \
const int16_t *const ker = s->ker[map] + y * uv_linesize * ws * ws; \