[FFmpeg-cvslog] lavfi/hqdn3d: avoid use of uninitialized variable.

Clément Bœsch git at videolan.org
Sun Dec 2 02:53:42 CET 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Sun Dec  2 02:53:22 2012 +0100| [9e1914dfbafb59b424a7c06cfdd324a85c33ef44] | committer: Clément Bœsch

lavfi/hqdn3d: avoid use of uninitialized variable.

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

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

diff --git a/libavfilter/vf_hqdn3d.c b/libavfilter/vf_hqdn3d.c
index 92e0b44..939a31d 100644
--- a/libavfilter/vf_hqdn3d.c
+++ b/libavfilter/vf_hqdn3d.c
@@ -327,7 +327,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
     AVFilterLink *outlink = inlink->dst->outputs[0];
 
     AVFilterBufferRef *out;
-    int direct, c;
+    int direct = 0, c;
 
     if (in->perms & AV_PERM_WRITE) {
         direct = 1;



More information about the ffmpeg-cvslog mailing list