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
1be55c82
Commit
1be55c82
authored
Jul 22, 2012
by
Peter Ross
Committed by
Michael Niedermayer
Jul 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
av_url_split: dont let '/' char whallop '?' char
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
21fb7ff3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
utils.c
libavformat/utils.c
+5
-2
No files found.
libavformat/utils.c
View file @
1be55c82
...
...
@@ -4076,7 +4076,7 @@ void av_url_split(char *proto, int proto_size,
char
*
path
,
int
path_size
,
const
char
*
url
)
{
const
char
*
p
,
*
ls
,
*
at
,
*
col
,
*
brk
;
const
char
*
p
,
*
ls
,
*
ls2
,
*
at
,
*
col
,
*
brk
;
if
(
port_ptr
)
*
port_ptr
=
-
1
;
if
(
proto_size
>
0
)
proto
[
0
]
=
0
;
...
...
@@ -4098,8 +4098,11 @@ void av_url_split(char *proto, int proto_size,
/* separate path from hostname */
ls
=
strchr
(
p
,
'/'
);
ls2
=
strchr
(
p
,
'?'
);
if
(
!
ls
)
ls
=
strchr
(
p
,
'?'
);
ls
=
ls2
;
else
if
(
ls
&&
ls2
)
ls
=
FFMIN
(
ls
,
ls2
);
if
(
ls
)
av_strlcpy
(
path
,
ls
,
path_size
);
else
...
...
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