avfilter/vf_overlay: use slice_end in alpha_composite()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
pull/298/head
Paul B Mahol 7 years ago
parent 19c3df0cd6
commit 70d25b89db
  1. 2
      libavfilter/vf_overlay.c

@ -611,7 +611,7 @@ static inline void alpha_composite(const AVFrame *src, const AVFrame *dst,
sa = src->data[3] + (i + slice_start) * src->linesize[3]; sa = src->data[3] + (i + slice_start) * src->linesize[3];
da = dst->data[3] + (y + i + slice_start) * dst->linesize[3]; da = dst->data[3] + (y + i + slice_start) * dst->linesize[3];
for (i = i + slice_start; i < imax; i++) { for (i = i + slice_start; i < slice_end; i++) {
j = FFMAX(-x, 0); j = FFMAX(-x, 0);
s = sa + j; s = sa + j;
d = da + x+j; d = da + x+j;

Loading…
Cancel
Save