diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2017-07-07 10:08:18 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2017-07-07 10:08:18 +0800 |
commit | 2d417076a2a7e7d15c239cd63646dae27ed5c126 (patch) | |
tree | 00f1886158f031c0309fa5c9c27cb7dcdd11a92e /libavformat/hlsenc.c | |
parent | 23e21130bbbe3f9c7ee9050e3a720b6ba2767022 (diff) | |
download | ffmpeg-2d417076a2a7e7d15c239cd63646dae27ed5c126.tar.gz |
avformat/hlsenc: Add missing error check
Reviewed-by: Steven Liu <lq@onvideo.cn>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r-- | libavformat/hlsenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index d93ca844e4..8a233270b5 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -602,6 +602,8 @@ static int hls_mux_init(AVFormatContext *s) av_dict_set(&options, "fflags", "-autobsf", 0); av_dict_set(&options, "movflags", "frag_custom+dash+delay_moov", 0); ret = avformat_init_output(oc, &options); + if (ret < 0) + return ret; if (av_dict_count(options)) { av_log(s, AV_LOG_ERROR, "Some of the provided format options in '%s' are not recognized\n", hls->format_options_str); av_dict_free(&options); |