hdsenc: Check the init_file() return code

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Michael Niedermayer 2013-12-12 21:04:24 +01:00 committed by Martin Storsjö
parent b8ed15d637
commit 797f2a7913
1 changed files with 3 additions and 1 deletions

View File

@ -412,7 +412,9 @@ static int hds_write_header(AVFormatContext *s)
snprintf(os->temp_filename, sizeof(os->temp_filename), snprintf(os->temp_filename, sizeof(os->temp_filename),
"%s/stream%d_temp", s->filename, i); "%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) { if (!os->has_video && c->min_frag_duration <= 0) {
av_log(s, AV_LOG_WARNING, av_log(s, AV_LOG_WARNING,