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

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


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

lavfi/gradfun: avoid use of uninitialized variable.

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

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

diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c
index 265d3ee..260a44b 100644
--- a/libavfilter/vf_gradfun.c
+++ b/libavfilter/vf_gradfun.c
@@ -187,7 +187,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
     GradFunContext *gf = inlink->dst->priv;
     AVFilterLink *outlink = inlink->dst->outputs[0];
     AVFilterBufferRef *out;
-    int p, direct;
+    int p, direct = 0;
 
     if ((in->perms & AV_PERM_WRITE) && !(in->perms & AV_PERM_PRESERVE)) {
         direct = 1;



More information about the ffmpeg-cvslog mailing list