From: Michael Niedermayer Date: Thu, 12 Dec 2013 20:04:24 +0000 (+0100) Subject: hdsenc: Check the init_file() return code X-Git-Tag: android-x86-6.0-r1~10^2~2508 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=797f2a791397210ec1b591b326658805c5dbf104;p=android-x86%2Fexternal-ffmpeg.git hdsenc: Check the init_file() return code Signed-off-by: Martin Storsjö --- 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,