X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_nnedi.c;h=9bad99e98a8474ed879d27df629c920f9e9e338f;hb=c36e72ed279b072bce325c7a11a85020c0a310fc;hp=b14aa64c0462afda46050d1d2fe5941f2056c975;hpb=e427ba5c68a522b26a45bf7c61016d9349fab43d;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;