[libav-stable] vf_delogo: fix an uninitialized read.

Anton Khirnov git at libav.org
Tue Jan 29 07:37:20 CET 2013


Module: libav
Branch: master
Commit: f81c37e40fe3236d54da12aef9cdba48ba70ec31

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Mon Jan 21 21:10:54 2013 +0100

vf_delogo: fix an uninitialized read.

CC:libav-stable at libav.org

---

 libavfilter/vf_delogo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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 libav-stable mailing list