BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.25k stars 4.61k forks source link

CMBlockBufferRef need to be release after call self.audioProcessingCallback #2276

Open scharli opened 8 years ago

scharli commented 8 years ago

Hi,

In GPUMovieWriter.m:450 after for (int bufferCount=0; bufferCount < audioBufferList.mNumberBuffers; bufferCount++) { SInt16 *samples = (SInt16 *)audioBufferList.mBuffers[bufferCount].mData; self.audioProcessingCallback(&samples, numSamplesInBuffer); }

You should release CMBlockBufferRef with CFRelease(buffer);

If you don´t do this, after X audio samples buffer processed the system stops filling AudioBufferList with the retained block buffer information