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:
7830c88
)
libavformat/hdsenc: check init_file() return code
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 12 Dec 2013 20:04:24 +0000
(21:04 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 12 Dec 2013 20:04:24 +0000
(21:04 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/hdsenc.c
patch
|
blob
|
history
diff --git
a/libavformat/hdsenc.c
b/libavformat/hdsenc.c
index
6679a17
..
1a3814d
100644
(file)
--- a/
libavformat/hdsenc.c
+++ b/
libavformat/hdsenc.c
@@
-418,7
+418,9
@@
static int hds_write_header(AVFormatContext *s)
snprintf(os->temp_filename, sizeof(os->temp_filename),
"%s/stream%d_temp", s->filename, i);
- init_file(s, os, 0);
+ ret = init_file(s, os, 0);
+ if (ret < 0)
+ goto fail;
if (!os->has_video && c->min_frag_duration <= 0) {
av_log(s, AV_LOG_WARNING,