Browse code

vf_hqdn3d: fix uninitialized variable use

CC:libav-stable@libav.org
(cherry picked from commit d0a863ac891eae49ceaa4de7f759270bc87e668d)

Conflicts:

libavfilter/vf_hqdn3d.c

Anton Khirnov authored on 2013/02/28 16:47:21
Showing 1 changed files
... ...
@@ -333,6 +333,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
333 333
         direct = 1;
334 334
         out = in;
335 335
     } else {
336
+        direct = 0;
336 337
         out = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h);
337 338
         if (!out) {
338 339
             avfilter_unref_bufferp(&in);