ffmpeg | branch: master | Paul B Mahol <[email protected]> | Sun Apr 29 10:02:57 2018 +0200| [70d25b89db9b9b85d02480faddf7bee3988a36cd] | committer: Paul B Mahol
avfilter/vf_overlay: use slice_end in alpha_composite() Signed-off-by: Paul B Mahol <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=70d25b89db9b9b85d02480faddf7bee3988a36cd --- libavfilter/vf_overlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
