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
c12e1bd1
Commit
c12e1bd1
authored
Nov 10, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: allow any chars in protocols
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
2bb1c713
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
avio.c
libavformat/avio.c
+3
-3
No files found.
libavformat/avio.c
View file @
c12e1bd1
...
...
@@ -265,17 +265,17 @@ int ffurl_alloc(URLContext **puc, const char *filename, int flags,
{
URLProtocol
*
up
=
NULL
;
char
proto_str
[
128
],
proto_nested
[
128
],
*
ptr
;
size_t
proto_len
=
strspn
(
filename
,
URL_SCHEME_CHARS
);
const
char
*
proto_end
=
strchr
(
filename
,
':'
);
if
(
!
first_protocol
)
{
av_log
(
NULL
,
AV_LOG_WARNING
,
"No URL Protocols are registered. "
"Missing call to av_register_all()?
\n
"
);
}
if
(
filename
[
proto_len
]
!=
':'
||
is_dos_path
(
filename
))
if
(
!
proto_end
||
is_dos_path
(
filename
))
strcpy
(
proto_str
,
"file"
);
else
av_strlcpy
(
proto_str
,
filename
,
FFMIN
(
proto_
len
+
1
,
sizeof
(
proto_str
)));
av_strlcpy
(
proto_str
,
filename
,
FFMIN
(
proto_
end
-
filename
+
1
,
sizeof
(
proto_str
)));
av_strlcpy
(
proto_nested
,
proto_str
,
sizeof
(
proto_nested
));
if
((
ptr
=
strchr
(
proto_nested
,
'+'
)))
...
...
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