Commit 20a6b198 authored by Steven Liu's avatar Steven Liu

avformat/hlsenc: move free fmp4_init_filename after hls_window operation

fix ticket id: 6599
Signed-off-by: 's avatarSteven Liu <lq@onvideo.cn>
parent bc488ec2
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment