mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avformat/hlsenc: Add missing error check
Reviewed-by: Steven Liu <lq@onvideo.cn> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
parent
23e21130bb
commit
2d417076a2
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user