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;