Merge pull request #535 from reboot/fix_unclosed_media_source_files
deps/libff: Fix that inputs are not closed when a demuxer is freedmaster
commit
8af2c168cf
|
@ -94,7 +94,7 @@ void ff_demuxer_free(struct ff_demuxer *demuxer)
|
|||
ff_decoder_free(demuxer->video_decoder);
|
||||
|
||||
if (demuxer->format_context)
|
||||
avformat_free_context(demuxer->format_context);
|
||||
avformat_close_input(&demuxer->format_context);
|
||||
|
||||
av_free(demuxer);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue