avfilter/vf_zoompan: do not free frame we pushed to lavfi
authorPaul B Mahol <onemda@gmail.com>
Sat, 2 Jan 2016 17:51:11 +0000 (18:51 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 2 Jan 2016 20:25:51 +0000 (21:25 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
(cherry picked from commit 8bcd1997eadb0d79a049227a1d1afe6111397baa)

Fixes ticket #5113.

libavfilter/vf_zoompan.c

index c49193a..e5d8190 100644 (file)
@@ -230,9 +230,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
         s->frame_count++;
 
         ret = ff_filter_frame(outlink, out);
+        out = NULL;
         if (ret < 0)
             break;
-        out = NULL;
 
         sws_freeContext(s->sws);
         s->sws = NULL;