1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_guided: Don't free frame we don't own

Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-05-14 10:34:41 +02:00
parent 4c0d6c91f6
commit 618d186b8c

View File

@ -319,7 +319,6 @@ static int process_frame(FFFrameSync *fs)
out_frame = ff_get_video_buffer(outlink, outlink->w, outlink->h); out_frame = ff_get_video_buffer(outlink, outlink->w, outlink->h);
if (!out_frame) { if (!out_frame) {
av_frame_free(&main_frame); av_frame_free(&main_frame);
av_frame_free(&ref_frame);
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
} }
av_frame_copy_props(out_frame, main_frame); av_frame_copy_props(out_frame, main_frame);