meh / rust-ffmpeg

Safe FFmpeg wrapper.
Do What The F*ck You Want To Public License
462 stars 96 forks source link

Add avformat_close_input call to clean up AVFormatContext #106

Closed retrry closed 6 years ago

retrry commented 6 years ago

I just hit a bug, where a stream could be opened with avformat_open_input, but ffmpeg can't read stream information (avformat_find_stream_info fails). avformant_open_input, on failure, cleans up AVFormatContext, but avformat_find_stream_info does not, which leaves hanging AVFormantContext's in memory.

retrry commented 6 years ago

Superseded by: https://github.com/meh/rust-ffmpeg/pull/107