vf_delogo: fix an uninitialized read.
authorAnton Khirnov <anton@khirnov.net>
Mon, 21 Jan 2013 20:10:54 +0000 (21:10 +0100)
committerAnton Khirnov <anton@khirnov.net>
Tue, 29 Jan 2013 06:32:54 +0000 (07:32 +0100)
CC:libav-stable@libav.org

libavfilter/vf_delogo.c

index 76848c3..5d56444 100644 (file)
@@ -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)) {