HJImagesToVideo
HJImagesToVideo copied to clipboard
Memory problem
Hello i have used your app and i have a memory problems the app crash when the number of images is over 100 image... is there a solution for this problem?? i don't want to be controlled with limited number of images.. is there another way to make video from images??
Indeed, it has the memory leak in CVPixelBufferCreate() method, the memory seems can't release the buffer you create, and when u try a few more times converting or the images are too much, it crashes. Hope fix this problem, or any suggestion for images to video solution for batch images?
You need to replace
return [adaptor appendPixelBuffer:buffer withPresentationTime:presentTime];
by
BOOL isAppend = [adaptor appendPixelBuffer:buffer withPresentationTime:presentTime];
CVPixelBufferRelease(buffer);
return isAppend;