Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
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
videolan
vlc
Commits
6b9308c8
Commit
6b9308c8
authored
Jan 05, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be more DSO-friendly
parent
4e7bb159
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/input/demux.c
src/input/demux.c
+6
-6
No files found.
src/input/demux.c
View file @
6b9308c8
...
...
@@ -80,7 +80,7 @@ demux_t *__demux2_New( vlc_object_t *p_obj,
* anyway
* - wav can't be added 'cause of a52 and dts in them as raw audio
*/
static
struct
{
const
char
*
ext
;
const
char
*
demux
;
}
exttodemux
[]
=
static
const
struct
{
char
ext
[
5
];
char
demux
[
9
]
;
}
exttodemux
[]
=
{
{
"aac"
,
"aac"
},
{
"aiff"
,
"aiff"
},
...
...
@@ -99,15 +99,15 @@ demux_t *__demux2_New( vlc_object_t *p_obj,
{
"rm"
,
"rm"
},
{
"m4v"
,
"m4v"
},
{
"h264"
,
"h264"
},
{
NULL
,
NULL
},
{
""
,
""
},
};
/* Here, we don't mind if it does not work, it must be quick */
static
struct
{
const
char
*
ext
;
const
char
*
demux
;
}
exttodemux_quick
[]
=
static
const
struct
{
char
ext
[
4
];
char
demux
[
5
]
;
}
exttodemux_quick
[]
=
{
{
"mp3"
,
"mpga"
},
{
"ogg"
,
"ogg"
},
{
"wma"
,
"asf"
},
{
NULL
,
NULL
}
{
""
,
""
}
};
const
char
*
psz_ext
=
strrchr
(
p_demux
->
psz_path
,
'.'
)
+
1
;
...
...
@@ -115,7 +115,7 @@ demux_t *__demux2_New( vlc_object_t *p_obj,
if
(
!
b_quick
)
{
for
(
i
=
0
;
exttodemux
[
i
].
ext
!=
NULL
;
i
++
)
for
(
i
=
0
;
exttodemux
[
i
].
ext
[
0
]
;
i
++
)
{
if
(
!
strcasecmp
(
psz_ext
,
exttodemux
[
i
].
ext
)
)
{
...
...
@@ -126,7 +126,7 @@ demux_t *__demux2_New( vlc_object_t *p_obj,
}
else
{
for
(
i
=
0
;
exttodemux_quick
[
i
].
ext
!=
NULL
;
i
++
)
for
(
i
=
0
;
exttodemux_quick
[
i
].
ext
[
0
]
;
i
++
)
{
if
(
!
strcasecmp
(
psz_ext
,
exttodemux_quick
[
i
].
ext
)
)
{
...
...
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