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
58030fc6
Commit
58030fc6
authored
Nov 24, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: Fix handling of filenames that contain :
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
32ed7da1
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 @
58030fc6
...
...
@@ -288,17 +288,17 @@ int ffurl_alloc(URLContext **puc, const char *filename, int flags,
{
URLProtocol
*
up
=
NULL
;
char
proto_str
[
128
],
proto_nested
[
128
],
*
ptr
;
const
char
*
proto_end
=
strchr
(
filename
,
':'
);
size_t
proto_len
=
strspn
(
filename
,
URL_SCHEME_CHARS
);
if
(
!
first_protocol
)
{
av_log
(
NULL
,
AV_LOG_WARNING
,
"No URL Protocols are registered. "
"Missing call to av_register_all()?
\n
"
);
}
if
(
!
proto_end
||
is_dos_path
(
filename
))
if
(
filename
[
proto_len
]
!=
':'
&&
filename
[
proto_len
]
!=
','
||
is_dos_path
(
filename
))
strcpy
(
proto_str
,
"file"
);
else
av_strlcpy
(
proto_str
,
filename
,
FFMIN
(
proto_
end
-
filename
+
1
,
sizeof
(
proto_str
)));
av_strlcpy
(
proto_str
,
filename
,
FFMIN
(
proto_
len
+
1
,
sizeof
(
proto_str
)));
if
((
ptr
=
strchr
(
proto_str
,
','
)))
*
ptr
=
'\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