Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
7145e80b
Commit
7145e80b
authored
Jan 13, 2016
by
Maxim Andreev
Committed by
Michael Niedermayer
Jan 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/hls: forbid all protocols except http(s) & file
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
92465a23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
hls.c
libavformat/hls.c
+4
-0
No files found.
libavformat/hls.c
View file @
7145e80b
...
...
@@ -610,6 +610,10 @@ static int open_url(HLSContext *c, URLContext **uc, const char *url, AVDictionar
{
AVDictionary
*
tmp
=
NULL
;
int
ret
;
const
char
*
proto_name
=
avio_find_protocol_name
(
url
);
// only http(s) & file are allowed
if
(
!
av_strstart
(
proto_name
,
"http"
,
NULL
)
&&
!
av_strstart
(
proto_name
,
"file"
,
NULL
))
return
AVERROR_INVALIDDATA
;
av_dict_copy
(
&
tmp
,
c
->
avio_opts
,
0
);
av_dict_copy
(
&
tmp
,
opts
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment