[FFmpeg-cvslog] vf_gradfun: fix uninitialized variable use

Anton Khirnov git at videolan.org
Mon Mar 18 03:16:30 CET 2013


ffmpeg | branch: release/1.1 | Anton Khirnov <anton at khirnov.net> | Thu Feb 28 08:47:21 2013 +0100| [a0361a6c30905ee428373e48718d9c3915cbeece] | committer: Reinhard Tartler

vf_gradfun: fix uninitialized variable use

CC:libav-stable at libav.org
(cherry picked from commit 887d31d455915b6bde6814063384dafdee61164c)

Conflicts:

	libavfilter/vf_gradfun.c

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

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

diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c
index 2c9a976..79e1490 100644
--- a/libavfilter/vf_gradfun.c
+++ b/libavfilter/vf_gradfun.c
@@ -193,6 +193,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
         direct = 1;
         out = in;
     } else {
+        direct = 0;
         out = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h);
         if (!out) {
             avfilter_unref_bufferp(&in);



More information about the ffmpeg-cvslog mailing list