Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Steve Lhomme
VLC
Commits
0ddd6eff
Commit
0ddd6eff
authored
Dec 15, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reworked the way avformat input are blacklisted.
parent
04f7cf0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
modules/demux/avformat/demux.c
modules/demux/avformat/demux.c
+17
-11
No files found.
modules/demux/avformat/demux.c
View file @
0ddd6eff
...
...
@@ -139,18 +139,24 @@ int OpenDemux( vlc_object_t *p_this )
return
VLC_EGENERIC
;
}
/* Don't try to handle MPEG unless forced */
if
(
!
p_demux
->
b_force
&&
(
!
strcmp
(
fmt
->
name
,
"mpeg"
)
||
!
strcmp
(
fmt
->
name
,
"vcd"
)
||
!
strcmp
(
fmt
->
name
,
"vob"
)
||
!
strcmp
(
fmt
->
name
,
"mpegts"
)
||
/* libavformat's redirector won't work */
!
strcmp
(
fmt
->
name
,
"redir"
)
||
!
strcmp
(
fmt
->
name
,
"sdp"
)
)
)
if
(
!
p_demux
->
b_force
)
{
free
(
psz_url
);
return
VLC_EGENERIC
;
static
const
char
ppsz_blacklist
[][
16
]
=
{
/* Don't handle MPEG unless forced */
"mpeg"
,
"vcd"
,
"vob"
,
"mpegts"
,
/* libavformat's redirector won't work */
"redir"
,
"sdp"
,
""
};
for
(
int
i
=
0
;
*
ppsz_blacklist
[
i
];
i
++
)
{
if
(
!
strcmp
(
fmt
->
name
,
ppsz_blacklist
[
i
]
)
)
{
free
(
psz_url
);
return
VLC_EGENERIC
;
}
}
}
/* Don't trigger false alarms on bin files */
...
...
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