From b78587010191b2d6e0e5a7e71b8f4d2befded063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 3 Aug 2009 22:59:23 +0000 Subject: [PATCH] Free the AVFifoBuffer data in the destructor... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32106 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/media/plugins/ffmpeg/AVCodecEncoder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/add-ons/media/plugins/ffmpeg/AVCodecEncoder.cpp b/src/add-ons/media/plugins/ffmpeg/AVCodecEncoder.cpp index da3ccb847a..0b0515bba8 100644 --- a/src/add-ons/media/plugins/ffmpeg/AVCodecEncoder.cpp +++ b/src/add-ons/media/plugins/ffmpeg/AVCodecEncoder.cpp @@ -64,6 +64,8 @@ AVCodecEncoder::~AVCodecEncoder() sws_freeContext(fSwsContext); + av_fifo_free(&fAudioFifo); + avpicture_free(&fDstFrame); // NOTE: Do not use avpicture_free() on fSrcFrame!! We fill the picture // data on the file with the media buffer data passed to Encode().