fix close files

Origin commit data
------------------
Branch: master
Commit: c5f2ab5d4e
Author: TangoCash <eric@loxat.de>
Date: 2017-12-18 (Mon, 18 Dec 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2017-12-18 20:46:47 +01:00
parent 86298c0f76
commit ff6f47e157

View File

@@ -2240,6 +2240,7 @@ static int32_t container_ffmpeg_stop(Context_t *context)
* avformat_close_input do not expect custom io, so it try * avformat_close_input do not expect custom io, so it try
* to release incorrectly * to release incorrectly
*/ */
fclose(avContextTab[i]->pb->opaque);
av_freep(&(avContextTab[i]->pb->buffer)); av_freep(&(avContextTab[i]->pb->buffer));
av_freep(&(avContextTab[i]->pb)); av_freep(&(avContextTab[i]->pb));
use_custom_io[i] = 0; use_custom_io[i] = 0;
@@ -2681,4 +2682,4 @@ Container_t FFMPEGContainer =
"FFMPEG", "FFMPEG",
&Command, &Command,
FFMPEG_Capabilities FFMPEG_Capabilities
}; };