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 leak in QVideoEncoder #6

Open
GoogleCodeExporter opened this issue May 25, 2015 · 0 comments
Open

Memory leak in QVideoEncoder #6

GoogleCodeExporter opened this issue May 25, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

img_convert_ctx isn't freed on close()

ffmpeg::sws_getCachedContext() tries to use an already existing context but 
fails because initVars() sets img_convert_ctx to zero. So a new context is 
allocated on every new video.

Adding the following lines to QVideoEncoder::close() (before initVars) solves 
the problem:
// free the sws-context
sws_freeContext(img_convert_ctx);

Another solution would be of course to remove the corresponding line from 
initVars()

regards

Frederik Pasch

Original issue reported on code.google.com by [email protected] on 14 Feb 2011 at 2:36

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

No branches or pull requests

1 participant