OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0ece1f
)
avformat/hlsenc: move old_filename free operation earlier
author
Steven Liu
<lq@chinaffmpeg.org>
Thu, 11 May 2017 02:15:08 +0000
(10:15 +0800)
committer
Steven Liu
<lq@chinaffmpeg.org>
Thu, 11 May 2017 02:15:08 +0000
(10:15 +0800)
Suggested-by: Aaron Levinson <alevinsn@aracnet.com>
Reviewed-by: Aaron Levinson <alevinsn@aracnet.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
libavformat/hlsenc.c
patch
|
blob
|
history
diff --git
a/libavformat/hlsenc.c
b/libavformat/hlsenc.c
index
221089c
..
7ed121a
100644
(file)
--- a/
libavformat/hlsenc.c
+++ b/
libavformat/hlsenc.c
@@
-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;
}
}