mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-08 00:10:30 +00:00
avformat/http: Check that the protocol of redirects is http or https
Fixes: #YWH-PGM40646-10
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit b9227d49ea)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
1cd5e7ef49
commit
ad28e7975f
1 changed files with 4 additions and 0 deletions
|
|
@ -233,7 +233,11 @@ static int http_open_cnx_internal(URLContext *h, AVDictionary **options)
|
|||
if (err < 0)
|
||||
goto end;
|
||||
}
|
||||
} else if (strcmp(proto, "http")) {
|
||||
err = AVERROR(EINVAL);
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (port < 0)
|
||||
port = 80;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue