[FFmpeg-cvslog] vf_delogo: fix an uninitialized read.

Anton Khirnov git at videolan.org
Tue Jan 29 14:39:23 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Jan 21 21:10:54 2013 +0100| [f81c37e40fe3236d54da12aef9cdba48ba70ec31] | committer: Anton Khirnov

vf_delogo: fix an uninitialized read.

CC:libav-stable at libav.org

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f81c37e40fe3236d54da12aef9cdba48ba70ec31
---

 libavfilter/vf_delogo.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_delogo.c b/libavfilter/vf_delogo.c
index 76848c3..5d56444 100644
--- a/libavfilter/vf_delogo.c
+++ b/libavfilter/vf_delogo.c
@@ -223,7 +223,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
     AVFilterBufferRef *out;
     int hsub0 = desc->log2_chroma_w;
     int vsub0 = desc->log2_chroma_h;
-    int direct;
+    int direct = 0;
     int plane;
 
     if ((in->perms & AV_PERM_WRITE) && !(in->perms & AV_PERM_PRESERVE)) {



More information about the ffmpeg-cvslog mailing list