diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-12 21:04:24 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-12 21:04:24 +0100 |
commit | 3dbf9afe857d480993786bea0ede9dd9526776d2 (patch) | |
tree | 89e7e1b6fc59859d5c9ff4201188811910a29a1c /libavformat/hdsenc.c | |
parent | 7830c882fa9327df81d7b36b627fc05a842bea2b (diff) | |
download | ffmpeg-3dbf9afe857d480993786bea0ede9dd9526776d2.tar.gz |
libavformat/hdsenc: check init_file() return code
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/hdsenc.c')
-rw-r--r-- | libavformat/hdsenc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/hdsenc.c b/libavformat/hdsenc.c index 6679a1795f..1a3814d7e3 100644 --- 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, |