Fixed ffmpeg memory leak.

Originally committed to SVN as r956.
This commit is contained in:
Rodrigo Braz Monteiro 2007-03-27 22:56:08 +00:00
parent 493bc75ed1
commit 27b08cc8aa

View file

@ -376,7 +376,7 @@ const AegiVideoFrame LAVCVideoProvider::DoGetFrame(int n) {
}
// Get frame
AegiVideoFrame final;
AegiVideoFrame &final = curFrame;
if (frame) {
// Set AegiVideoFrame
PixelFormat format = codecContext->pix_fmt;
@ -417,11 +417,11 @@ const AegiVideoFrame LAVCVideoProvider::DoGetFrame(int n) {
// Set current frame
validFrame = true;
curFrame = final;
//curFrame = final;
frameNumber = n;
// Return
return final;
return curFrame;
}