[FFmpeg-devel] [PATCH] avfilter/vf_delogo: fix show option when clipping

Jean Delvare jdelvare at suse.de
Mon Dec 14 11:23:05 CET 2015


The show option did not take clipping into account, so the borders on
the clipped side wouldn't show up. Fix it.

Signed-off-by: Jean Delvare <jdelvare at suse.de>
---
 libavfilter/vf_delogo.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- ffmpeg.orig/libavfilter/vf_delogo.c	2015-12-11 14:59:30.539475316 +0100
+++ ffmpeg/libavfilter/vf_delogo.c	2015-12-11 14:59:31.264491882 +0100
@@ -101,8 +101,8 @@ static void apply_delogo(uint8_t *dst, i
              xdst = dst+logo_x1+1,
              xsrc = src+logo_x1+1; x < logo_x2-1; x++, xdst++, xsrc++) {
 
-            if (show && (y == logo_y+1 || y == logo_y+logo_h-2 ||
-                         x == logo_x+1 || x == logo_x+logo_w-2)) {
+            if (show && (y == logo_y1+1 || y == logo_y2-2 ||
+                         x == logo_x1+1 || x == logo_x2-2)) {
                 *xdst = 0;
                 continue;
             }


-- 
Jean Delvare
SUSE L3 Support


More information about the ffmpeg-devel mailing list