Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory problem #6

Open
FaisalAlneela opened this issue Aug 13, 2014 · 2 comments
Open

Memory problem #6

FaisalAlneela opened this issue Aug 13, 2014 · 2 comments

Comments

@FaisalAlneela
Copy link

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??

@leebeet
Copy link

leebeet commented Dec 4, 2015

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?

@fedorchukov
Copy link

fedorchukov commented Dec 21, 2017

You need to replace

return [adaptor appendPixelBuffer:buffer withPresentationTime:presentTime];

by

BOOL isAppend = [adaptor appendPixelBuffer:buffer withPresentationTime:presentTime];
CVPixelBufferRelease(buffer);
return isAppend;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants