ffmpeg | branch: master | Derek Buitenhuis <derek.buitenh...@gmail.com> | Fri Jul 7 10:08:18 2017 +0800| [2d417076a2a7e7d15c239cd63646dae27ed5c126] | committer: Steven Liu
avformat/hlsenc: Add missing error check Reviewed-by: Steven Liu <l...@onvideo.cn> Signed-off-by: Derek Buitenhuis <derek.buitenh...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d417076a2a7e7d15c239cd63646dae27ed5c126 --- libavformat/hlsenc.c | 2 ++ 1 file changed, 2 insertions(+) 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); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog