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
3a8fd592
Commit
3a8fd592
authored
Jan 24, 2016
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ts: process private pmt descriptor according to registration
parent
eaa7ec3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
8 deletions
+33
-8
modules/demux/mpeg/ts.c
modules/demux/mpeg/ts.c
+33
-8
No files found.
modules/demux/mpeg/ts.c
View file @
3a8fd592
...
@@ -5289,7 +5289,7 @@ static void ParsePMTRegistrations( demux_t *p_demux, const dvbpsi_descriptor_t
...
@@ -5289,7 +5289,7 @@ static void ParsePMTRegistrations( demux_t *p_demux, const dvbpsi_descriptor_t
for
(
const
dvbpsi_descriptor_t
*
p_dr
=
p_firstdr
;
p_dr
!=
NULL
;
p_dr
=
p_dr
->
p_next
)
for
(
const
dvbpsi_descriptor_t
*
p_dr
=
p_firstdr
;
p_dr
!=
NULL
;
p_dr
=
p_dr
->
p_next
)
{
{
/*
special descriptors handl
ing */
/*
general descriptors handling < 0x40 and scor
ing */
switch
(
p_dr
->
i_tag
)
switch
(
p_dr
->
i_tag
)
{
{
case
0x05
:
/* Registration Descriptor */
case
0x05
:
/* Registration Descriptor */
...
@@ -5340,13 +5340,7 @@ static void ParsePMTRegistrations( demux_t *p_demux, const dvbpsi_descriptor_t
...
@@ -5340,13 +5340,7 @@ static void ParsePMTRegistrations( demux_t *p_demux, const dvbpsi_descriptor_t
p_pmt
->
iod
=
IODNew
(
VLC_OBJECT
(
p_demux
),
p_dr
->
i_length
,
p_dr
->
p_data
);
p_pmt
->
iod
=
IODNew
(
VLC_OBJECT
(
p_demux
),
p_dr
->
i_length
,
p_dr
->
p_data
);
break
;
break
;
case
0x88
:
/* EACEM Simulcast HD Logical channels ordering */
msg_Dbg
(
p_demux
,
" * PMT descriptor : EACEM Simulcast HD"
);
/* TODO: apply visibility flags */
break
;
case
0xC1
:
case
0xC1
:
msg_Dbg
(
p_demux
,
" * PMT descriptor : Digital copy control (0xC1)"
);
i_arib_score_flags
|=
1
<<
2
;
i_arib_score_flags
|=
1
<<
2
;
break
;
break
;
...
@@ -5355,7 +5349,8 @@ static void ParsePMTRegistrations( demux_t *p_demux, const dvbpsi_descriptor_t
...
@@ -5355,7 +5349,8 @@ static void ParsePMTRegistrations( demux_t *p_demux, const dvbpsi_descriptor_t
break
;
break
;
default:
default:
msg_Dbg
(
p_demux
,
" * PMT descriptor : unknown (0x%x)"
,
p_dr
->
i_tag
);
if
(
p_dr
->
i_tag
<
0x40
)
msg_Dbg
(
p_demux
,
" * PMT descriptor : unknown (0x%x)"
,
p_dr
->
i_tag
);
break
;
break
;
}
}
}
}
...
@@ -5368,6 +5363,36 @@ static void ParsePMTRegistrations( demux_t *p_demux, const dvbpsi_descriptor_t
...
@@ -5368,6 +5363,36 @@ static void ParsePMTRegistrations( demux_t *p_demux, const dvbpsi_descriptor_t
p_sys
->
arib
.
e_mode
=
ARIBMODE_ENABLED
;
p_sys
->
arib
.
e_mode
=
ARIBMODE_ENABLED
;
}
}
/* Now process private descriptors >= 0x40 */
for
(
const
dvbpsi_descriptor_t
*
p_dr
=
p_firstdr
;
p_dr
!=
NULL
;
p_dr
=
p_dr
->
p_next
)
{
if
(
p_dr
->
i_tag
<
0x40
)
continue
;
switch
(
p_dr
->
i_tag
)
{
case
0x88
:
/* EACEM Simulcast HD Logical channels ordering */
if
(
registration_type
==
TS_PMT_REGISTRATION_NONE
)
msg_Dbg
(
p_demux
,
" * PMT descriptor : EACEM Simulcast HD"
);
/* TODO: apply visibility flags */
break
;
case
0xC1
:
if
(
registration_type
==
TS_PMT_REGISTRATION_ARIB
)
msg_Dbg
(
p_demux
,
" * PMT descriptor : Digital copy control (0xC1)"
);
break
;
case
0xDE
:
if
(
registration_type
==
TS_PMT_REGISTRATION_ARIB
)
msg_Dbg
(
p_demux
,
" * PMT descriptor : Content availability (0xDE)"
);
break
;
default:
msg_Dbg
(
p_demux
,
" * PMT descriptor : unknown (0x%x)"
,
p_dr
->
i_tag
);
break
;
}
}
*
p_registration_type
=
registration_type
;
*
p_registration_type
=
registration_type
;
}
}
...
...
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