diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-12 21:04:24 +0100 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-12-14 17:48:46 +0200 |
commit | 797f2a791397210ec1b591b326658805c5dbf104 (patch) | |
tree | fdf728eef66bce796de47b7edcc4a8257c08094a /libavformat/hdsenc.c | |
parent | b8ed15d6378f00e158c72c526fa0fce17da77361 (diff) | |
download | ffmpeg-797f2a791397210ec1b591b326658805c5dbf104.tar.gz |
hdsenc: Check the init_file() return code
Signed-off-by: Martin Storsjö <martin@martin.st>
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 c0932933d4..6217c1f51f 100644 --- a/libavformat/hdsenc.c +++ b/libavformat/hdsenc.c @@ -412,7 +412,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, |