[libav-stable] vf_gradfun: fix uninitialized variable use

Anton Khirnov git at libav.org
Mon Mar 11 18:33:20 CET 2013


Module: libav
Branch: master
Commit: 887d31d455915b6bde6814063384dafdee61164c

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Thu Feb 28 08:47:21 2013 +0100

vf_gradfun: fix uninitialized variable use

CC:libav-stable at libav.org

---

 libavfilter/vf_gradfun.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c
index 05412cf..ca7ef69 100644
--- a/libavfilter/vf_gradfun.c
+++ b/libavfilter/vf_gradfun.c
@@ -193,6 +193,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
         direct = 1;
         out = in;
     } else {
+        direct = 0;
         out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
         if (!out) {
             av_frame_free(&in);



More information about the libav-stable mailing list