From 6a1bf98b3af1d02946d6b151e53bb5a2300f88de Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 2 Jan 2016 18:51:11 +0100 Subject: [PATCH] avfilter/vf_zoompan: do not free frame we pushed to lavfi Signed-off-by: Paul B Mahol (cherry picked from commit 8bcd1997eadb0d79a049227a1d1afe6111397baa) Fixes ticket #5113. --- libavfilter/vf_zoompan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_zoompan.c b/libavfilter/vf_zoompan.c index fb6acd4da6..c65ce56602 100644 --- a/libavfilter/vf_zoompan.c +++ b/libavfilter/vf_zoompan.c @@ -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;