X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_nnedi.c;h=9bad99e98a8474ed879d27df629c920f9e9e338f;hb=2970846fc1fce2f0d41675c9145bf0fa6f64a8d7;hp=b14aa64c0462afda46050d1d2fe5941f2056c975;hpb=203bbaccfaaeac9548862e83792d38509a8c8167;p=ffmpeg diff --git a/libavfilter/vf_nnedi.c b/libavfilter/vf_nnedi.c index b14aa64c046..9bad99e98a8 100644 --- a/libavfilter/vf_nnedi.c +++ b/libavfilter/vf_nnedi.c @@ -809,8 +809,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *src) ret = get_frame(ctx, 1); if (ret < 0) { av_frame_free(&s->dst); - av_frame_free(&s->src); av_frame_free(&s->second); + s->src = NULL; return ret; } dst = s->dst;