提交 7355c1dd 编写于 作者: S Steven Liu

avformat/hlsenc: move old_filename free operation earlier

Suggested-by: NAaron Levinson <alevinsn@aracnet.com>
Reviewed-by: NAaron Levinson <alevinsn@aracnet.com>
Signed-off-by: NSteven Liu <lq@chinaffmpeg.org>
上级 c0ece1f4
......@@ -1549,14 +1549,13 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt)
sls_flag_file_rename(hls, old_filename);
ret = hls_start(s);
}
av_free(old_filename);
if (ret < 0) {
av_free(old_filename);
return ret;
}
if ((ret = hls_window(s, 0)) < 0) {
av_free(old_filename);
return ret;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册