summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-18 05:27:08 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-18 05:27:08 +0200
commitd1050d9950610aa2b27878b67bb2b902dd717e7c (patch)
treecfa53133c4861f6c62682a1ffadc11ddc5cc0913 /ffmpeg.c
parent08326e73a234fd0832bbf34b8b951352c17414c7 (diff)
ffmpeg: Free last_frame instead of just unref
Fixes Ticket4611 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 40d929dac2..f5029987ad 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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)