Skip to content
Snippets Groups Projects
Commit d1050d99 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

ffmpeg: Free last_frame instead of just unref


Fixes Ticket4611

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 08326e73
Branches
Tags
No related merge requests found
......@@ -1178,6 +1178,8 @@ static void do_video_out(AVFormatContext *s,
av_frame_unref(ost->last_frame);
if (next_picture)
av_frame_ref(ost->last_frame, next_picture);
else
av_frame_free(&ost->last_frame);
}
static double psnr(double d)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment