diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-04-29 10:02:57 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-04-29 10:02:57 +0200 |
commit | 70d25b89db9b9b85d02480faddf7bee3988a36cd (patch) | |
tree | 1babce9245a727d8cd1501bf8919bb50408e2f92 /libavfilter/vf_overlay.c | |
parent | 19c3df0cd6ddc21a666e67a0c98b7823a2730003 (diff) | |
download | ffmpeg-70d25b89db9b9b85d02480faddf7bee3988a36cd.tar.gz |
avfilter/vf_overlay: use slice_end in alpha_composite()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_overlay.c')
-rw-r--r-- | libavfilter/vf_overlay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c index a90540f45c..8c1895cca4 100644 --- a/libavfilter/vf_overlay.c +++ b/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]; 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); s = sa + j; d = da + x+j; |