Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
cb2fda7d
Commit
cb2fda7d
authored
Apr 10, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ts: handle different LPCM types
parent
69adf3b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
modules/demux/ts.c
modules/demux/ts.c
+20
-3
No files found.
modules/demux/ts.c
View file @
cb2fda7d
...
...
@@ -2423,9 +2423,6 @@ static void PIDFillFormat( const ts_es_t *es, int i_stream_type )
case
0x82
:
/* SCTE-27 (sub) */
es_format_Init
(
fmt
,
SPU_ES
,
VLC_CODEC_SCTE_27
);
break
;
case
0x83
:
/* LPCM (audio) */
es_format_Init
(
fmt
,
AUDIO_ES
,
VLC_CODEC_DVD_LPCM
);
break
;
case
0x84
:
/* SDDS (audio) */
es_format_Init
(
fmt
,
AUDIO_ES
,
VLC_CODEC_SDDS
);
break
;
...
...
@@ -3788,6 +3785,21 @@ static void PMTSetupEs0xA0( demux_t *p_demux, ts_pid_t *pid,
p_fmt
->
b_packetized
=
true
;
}
static
void
PMTSetupEs0x83
(
const
dvbpsi_pmt_t
*
p_pmt
,
ts_pid_t
*
pid
)
{
/* WiDi broadcasts without registration on PMT 0x1, PCR 0x1000 and
* with audio track pid being 0x1100..0x11FF */
if
(
p_pmt
->
i_program_number
==
0x1
&&
p_pmt
->
i_pcr_pid
==
0x1000
&&
(
pid
->
i_pid
>>
8
)
==
0x11
)
{
/* Not enough ? might contain 0x83 private descriptor, 2 bytes 0x473F */
es_format_Init
(
&
pid
->
es
->
fmt
,
AUDIO_ES
,
VLC_CODEC_WIDI_LPCM
);
}
else
es_format_Init
(
&
pid
->
es
->
fmt
,
AUDIO_ES
,
VLC_CODEC_DVD_LPCM
);
}
static
void
PMTSetupEsHDMV
(
ts_pid_t
*
pid
,
const
dvbpsi_pmt_es_t
*
p_es
)
{
es_format_t
*
p_fmt
=
&
pid
->
es
->
fmt
;
...
...
@@ -4093,6 +4105,11 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_pmt )
{
PMTSetupEs0xA0
(
p_demux
,
pid
,
p_es
);
}
else
if
(
p_es
->
i_type
==
0x83
)
{
/* LPCM (audio) */
PMTSetupEs0x83
(
p_pmt
,
pid
);
}
else
if
(
registration_type
==
TS_REGISTRATION_HDMV
)
{
PMTSetupEsHDMV
(
pid
,
p_es
);
...
...
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