1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

hls: Check av_opt_set_dict return value as well

Bug-Id: CID 1320426
This commit is contained in:
Luca Barbato 2015-10-01 01:34:35 +02:00
parent d0a3e89d41
commit 74942685cb

View File

@ -220,9 +220,8 @@ static int url_connect(struct variant *var, AVDictionary *opts)
av_dict_copy(&tmp, opts, 0);
av_opt_set_dict(var->input, &tmp);
if ((ret = ffurl_connect(var->input, NULL)) < 0) {
if ((ret = av_opt_set_dict(var->input, &tmp)) < 0 ||
(ret = ffurl_connect(var->input, NULL)) < 0) {
ffurl_close(var->input);
var->input = NULL;
}