From f9b1b8aa582e36f8445e30338ae77c2d43493e2f Mon Sep 17 00:00:00 2001 From: TangoCash Date: Mon, 18 Dec 2017 20:46:47 +0100 Subject: [PATCH] fix close files --- libeplayer3-arm/container/container_ffmpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libeplayer3-arm/container/container_ffmpeg.c b/libeplayer3-arm/container/container_ffmpeg.c index 9a51039..59c4f6d 100644 --- a/libeplayer3-arm/container/container_ffmpeg.c +++ b/libeplayer3-arm/container/container_ffmpeg.c @@ -2240,6 +2240,7 @@ static int32_t container_ffmpeg_stop(Context_t *context) * avformat_close_input do not expect custom io, so it try * to release incorrectly */ + fclose(avContextTab[i]->pb->opaque); av_freep(&(avContextTab[i]->pb->buffer)); av_freep(&(avContextTab[i]->pb)); use_custom_io[i] = 0; @@ -2681,4 +2682,4 @@ Container_t FFMPEGContainer = "FFMPEG", &Command, FFMPEG_Capabilities -}; \ No newline at end of file +};