Free the AVFifoBuffer data in the destructor...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32106 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2009-08-03 22:59:23 +00:00
parent 6e567425c6
commit b785870101

View File

@ -64,6 +64,8 @@ AVCodecEncoder::~AVCodecEncoder()
sws_freeContext(fSwsContext); sws_freeContext(fSwsContext);
av_fifo_free(&fAudioFifo);
avpicture_free(&fDstFrame); avpicture_free(&fDstFrame);
// NOTE: Do not use avpicture_free() on fSrcFrame!! We fill the picture // NOTE: Do not use avpicture_free() on fSrcFrame!! We fill the picture
// data on the file with the media buffer data passed to Encode(). // data on the file with the media buffer data passed to Encode().