ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Thu Jun 18 05:27:08 2015 +0200| [d1050d9950610aa2b27878b67bb2b902dd717e7c] | committer: Michael Niedermayer
ffmpeg: Free last_frame instead of just unref Fixes Ticket4611 Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d1050d9950610aa2b27878b67bb2b902dd717e7c --- ffmpeg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index 40d929d..f502998 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) _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog