Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
8e550e85
Commit
8e550e85
authored
Nov 28, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added MLP support to es demuxer.
parent
be372190
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
1 deletion
+38
-1
modules/demux/mpeg/es.c
modules/demux/mpeg/es.c
+38
-1
No files found.
modules/demux/mpeg/es.c
View file @
8e550e85
...
...
@@ -45,7 +45,7 @@ static void Close( vlc_object_t * );
vlc_module_begin
()
set_category
(
CAT_INPUT
)
set_subcategory
(
SUBCAT_INPUT_DEMUX
)
set_description
(
N_
(
"MPEG-I/II/4 / A52 / DTS audio"
)
)
set_description
(
N_
(
"MPEG-I/II/4 / A52 / DTS
/ MLP
audio"
)
)
set_capability
(
"demux"
,
155
)
set_callbacks
(
Open
,
Close
)
...
...
@@ -62,6 +62,8 @@ vlc_module_begin ()
add_shortcut
(
"eac3"
)
add_shortcut
(
"dts"
)
add_shortcut
(
"mlp"
)
vlc_module_end
()
/*****************************************************************************
...
...
@@ -125,12 +127,16 @@ static int A52Init( demux_t *p_demux );
static
int
DtsProbe
(
demux_t
*
p_demux
,
int64_t
*
pi_offset
);
static
int
DtsInit
(
demux_t
*
p_demux
);
static
int
MlpProbe
(
demux_t
*
p_demux
,
int64_t
*
pi_offset
);
static
int
MlpInit
(
demux_t
*
p_demux
);
static
const
codec_t
p_codec
[]
=
{
{
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'a'
),
false
,
"mp4 audio"
,
AacProbe
,
AacInit
},
{
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'a'
),
false
,
"mpeg audio"
,
MpgaProbe
,
MpgaInit
},
{
VLC_FOURCC
(
'a'
,
'5'
,
'2'
,
' '
),
true
,
"a52 audio"
,
A52Probe
,
A52Init
},
{
VLC_FOURCC
(
'e'
,
'a'
,
'c'
,
'3'
),
true
,
"eac3 audio"
,
EA52Probe
,
A52Init
},
{
VLC_FOURCC
(
'd'
,
't'
,
's'
,
' '
),
false
,
"dts audio"
,
DtsProbe
,
DtsInit
},
{
VLC_FOURCC
(
'm'
,
'l'
,
'p'
,
' '
),
false
,
"mlp audio"
,
MlpProbe
,
MlpInit
},
{
0
,
false
,
NULL
,
NULL
,
NULL
}
};
...
...
@@ -799,3 +805,34 @@ static int DtsInit( demux_t *p_demux )
return
VLC_SUCCESS
;
}
/*****************************************************************************
* MLP
*****************************************************************************/
static
bool
MlpCheckSync
(
const
uint8_t
*
p_peek
)
{
if
(
p_peek
[
4
+
0
]
!=
0xf8
||
p_peek
[
4
+
1
]
!=
0x72
||
p_peek
[
4
+
2
]
!=
0x6f
)
return
false
;
if
(
p_peek
[
4
+
3
]
!=
0xba
&&
p_peek
[
4
+
3
]
!=
0xbb
)
return
false
;
/* TODO checksum */
return
true
;
}
static
int
MlpProbe
(
demux_t
*
p_demux
,
int64_t
*
pi_offset
)
{
const
char
*
ppsz_name
[]
=
{
"mlp"
,
NULL
};
return
GenericProbe
(
p_demux
,
pi_offset
,
ppsz_name
,
MlpCheckSync
,
4
+
28
+
16
*
4
);
}
static
int
MlpInit
(
demux_t
*
p_demux
)
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
p_sys
->
i_packet_size
=
4096
;
return
VLC_SUCCESS
;
}
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