Commit 3dbf9afe authored by Michael Niedermayer's avatar Michael Niedermayer

libavformat/hdsenc: check init_file() return code

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7830c882
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment