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

avformat_close_input does not free memory. #175

Open
jonatino opened this issue Feb 28, 2024 · 0 comments
Open

avformat_close_input does not free memory. #175

jonatino opened this issue Feb 28, 2024 · 0 comments

Comments

@jonatino
Copy link

Please include as much info as possible to save me (solo maintainer helping for free) some time. A minimal, complete, and reproducible example is a must. Link to a gist if you don't feel like posting all the code inline. At the same time, please leave out unnecessary code so I don't need to wade through a hundred lines to get to the problematic part. Tell me your OS, FFmpeg version, etc. if there's even a slim chance of relevancy.

        let path = from_path(path);
        let mut ps = ptr::null_mut();
        let result =  avformat_open_input(&mut ps, path.as_ptr(), ptr::null_mut(), ptr::null_mut());
        println!("1 {:?} -> {result}", ps);
        avformat_close_input(&mut ps);

Even after calling avformat_close_input, the memory allocated during avformat_open_input is not freed.

windows 11, ffmpeg 6.1.1.

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

1 participant