aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2017-08-22 10:21:42 +0800
committerSteven Liu <lq@chinaffmpeg.org>2017-08-22 10:21:42 +0800
commit20a6b198b4849a5934736ac43517d24a70d20840 (patch)
treed64c9c2a84e5c74c9c8dc64b64c8cbaedf65768e
parentbc488ec28aec4bc91ba47283c49c9f7f25696eaa (diff)
downloadffmpeg-20a6b198b4849a5934736ac43517d24a70d20840.tar.gz
avformat/hlsenc: move free fmp4_init_filename after hls_window operation
fix ticket id: 6599 Signed-off-by: Steven Liu <lq@onvideo.cn>
-rw-r--r--libavformat/hlsenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 74a3249b73..4a90886331 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1745,7 +1745,6 @@ static int hls_write_trailer(struct AVFormatContext *s)
hls->size = avio_tell(hls->vtt_avf->pb) - hls->start_pos;
ff_format_io_close(s, &vtt_oc->pb);
}
- av_freep(&hls->fmp4_init_filename);
av_freep(&hls->basename);
av_freep(&hls->base_output_dirname);
av_freep(&hls->key_basename);
@@ -1754,6 +1753,7 @@ static int hls_write_trailer(struct AVFormatContext *s)
hls->avf = NULL;
hls_window(s, 1);
+ av_freep(&hls->fmp4_init_filename);
if (vtt_oc) {
av_freep(&hls->vtt_basename);
av_freep(&hls->vtt_m3u8_name);