1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

avfilter/vf_guided: Fix leak of frames

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-05-14 10:37:00 +02:00
parent 618d186b8c
commit 376e80ad74

View File

@ -343,6 +343,7 @@ static int process_frame(FFFrameSync *fs)
s->planewidth[plane], s->planeheight[plane],
main_frame->linesize[plane] / 2, ref_frame->linesize[plane] / 2, out_frame->linesize[plane] / 2, (1 << s->depth) - 1.f);
}
av_frame_free(&main_frame);
return ff_filter_frame(outlink, out_frame);
}