PDA

View Full Version : AVIStreamGetFrame leaking memory horribly


MasamuneXGP
21st September 2005, 04:14
I'm programming something that involves viewing video frames. It works very nicely, for some reason the "packed DIBs" returned by AVIStreamGetFrame are not deallocating. They're staying in memory forever until AVIStreamGetFrameClose is called. Meaning after I pull a few thousand frames, the memory usage is through the roof. How can I deallocate the DIB pointers? Or can I? Do I have to called GetFrameOpen/GetFrame/GetFrameClose every time?

MasamuneXGP
21st September 2005, 06:34
Upon closer inspection, it's apperently AviSynth that's sucking up all my memory. A quick search revealed the wonder of SetMemoryMax() to me, and that about solves my problem. Nothing to see hear people, move along.