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
19660a88
Commit
19660a88
authored
Nov 15, 2012
by
Gavin Kinsey
Committed by
Michael Niedermayer
Nov 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow use of @ character in username and passwords embedded in URLs
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ebf47502
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
utils.c
libavformat/utils.c
+5
-4
No files found.
libavformat/utils.c
View file @
19660a88
...
...
@@ -3592,7 +3592,7 @@ void av_url_split(char *proto, int proto_size,
char
*
path
,
int
path_size
,
const
char
*
url
)
{
const
char
*
p
,
*
ls
,
*
ls2
,
*
at
,
*
col
,
*
brk
;
const
char
*
p
,
*
ls
,
*
ls2
,
*
at
,
*
at2
,
*
col
,
*
brk
;
if
(
port_ptr
)
*
port_ptr
=
-
1
;
if
(
proto_size
>
0
)
proto
[
0
]
=
0
;
...
...
@@ -3627,9 +3627,10 @@ void av_url_split(char *proto, int proto_size,
/* the rest is hostname, use that to parse auth/port */
if
(
ls
!=
p
)
{
/* authorization (user[:pass]@hostname) */
if
((
at
=
strchr
(
p
,
'@'
))
&&
at
<
ls
)
{
av_strlcpy
(
authorization
,
p
,
FFMIN
(
authorization_size
,
at
+
1
-
p
));
at2
=
p
;
while
((
at
=
strchr
(
p
,
'@'
))
&&
at
<
ls
)
{
av_strlcpy
(
authorization
,
at2
,
FFMIN
(
authorization_size
,
at
+
1
-
at2
));
p
=
at
+
1
;
/* skip '@' */
}
...
...
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