提交 797f2a79 编写于 作者: M Michael Niedermayer 提交者: Martin Storsjö

hdsenc: Check the init_file() return code

Signed-off-by: NMartin Storsjö <martin@martin.st>
上级 b8ed15d6
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册