diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-18 05:27:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-18 22:09:01 +0200 |
commit | e04ae11fa06a6b156f077b91f4d7de9014c82006 (patch) | |
tree | 30de31d604823a6f590e45f1f2f656ef41e1b444 | |
parent | 08fadda68aebdc0b28c6e2816b77875ee50d6faf (diff) | |
download | ffmpeg-e04ae11fa06a6b156f077b91f4d7de9014c82006.tar.gz |
ffmpeg: Free last_frame instead of just unref
Fixes Ticket4611
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d1050d9950610aa2b27878b67bb2b902dd717e7c)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |