You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
hls: Check av_opt_set_dict return value as well
Bug-Id: CID 1320426
This commit is contained in:
@@ -220,9 +220,8 @@ static int url_connect(struct variant *var, AVDictionary *opts)
|
|||||||
|
|
||||||
av_dict_copy(&tmp, opts, 0);
|
av_dict_copy(&tmp, opts, 0);
|
||||||
|
|
||||||
av_opt_set_dict(var->input, &tmp);
|
if ((ret = av_opt_set_dict(var->input, &tmp)) < 0 ||
|
||||||
|
(ret = ffurl_connect(var->input, NULL)) < 0) {
|
||||||
if ((ret = ffurl_connect(var->input, NULL)) < 0) {
|
|
||||||
ffurl_close(var->input);
|
ffurl_close(var->input);
|
||||||
var->input = NULL;
|
var->input = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user