]> git.sesse.net Git - ffmpeg/commit
avfilter/delogo: Check that logo area is inside the picture
authorJean Delvare <jdelvare@suse.de>
Tue, 10 May 2016 12:50:38 +0000 (14:50 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 10 May 2016 16:18:47 +0000 (18:18 +0200)
commitaeefe018f847aa46c8d69d1d237a54ef89f58fee
treeb691fe29241180ba85bdd85057809edfd59d7224
parent531ff7161d9d6b0cf8f71125319c1f5df5041637
avfilter/delogo: Check that logo area is inside the picture

We can only remove the logo if it is inside the picture. We need at
least one pixel around the logo area for interpolation.

Fixes ticket #5527 (Delogo crash with x=0 and/or y=0).

Signed-off-by: Jean Delvare <jdelvare@suse.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_delogo.c