Merge pull request #535 from reboot/fix_unclosed_media_source_files

deps/libff: Fix that inputs are not closed when a demuxer is freed
master
Jim 2016-04-10 16:22:32 -07:00
commit 8af2c168cf
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}