mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avfilter/vf_nnedi: fix possible double free
This commit is contained in:
parent
a1e5c35a6e
commit
5b4010e886
@ -809,8 +809,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *src)
|
|||||||
ret = get_frame(ctx, 1);
|
ret = get_frame(ctx, 1);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
av_frame_free(&s->dst);
|
av_frame_free(&s->dst);
|
||||||
av_frame_free(&s->src);
|
|
||||||
av_frame_free(&s->second);
|
av_frame_free(&s->second);
|
||||||
|
s->src = NULL;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
dst = s->dst;
|
dst = s->dst;
|
||||||
|
Loading…
Reference in New Issue
Block a user