Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
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
libdvbpsi
Commits
78f7c830
Commit
78f7c830
authored
Feb 10, 2016
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SIS: decode and generate splice_null command
parent
ffdba2ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
src/tables/sis.c
src/tables/sis.c
+22
-1
No files found.
src/tables/sis.c
View file @
78f7c830
...
@@ -449,6 +449,9 @@ void dvbpsi_sis_sections_decode(dvbpsi_t* p_dvbpsi, dvbpsi_sis_t* p_sis,
...
@@ -449,6 +449,9 @@ void dvbpsi_sis_sections_decode(dvbpsi_t* p_dvbpsi, dvbpsi_sis_t* p_sis,
switch
(
p_sis
->
i_splice_command_type
)
switch
(
p_sis
->
i_splice_command_type
)
{
{
case
0x00
:
/* splice_null */
case
0x00
:
/* splice_null */
p_sis
->
p_splice_command
=
NULL
;
assert
(
p_sis
->
i_splice_command_length
==
0
);
break
;
case
0x04
:
/* splice_schedule */
case
0x04
:
/* splice_schedule */
case
0x05
:
/* splice_insert */
case
0x05
:
/* splice_insert */
case
0x06
:
/* time_signal */
case
0x06
:
/* time_signal */
...
@@ -539,7 +542,25 @@ dvbpsi_psi_section_t *dvbpsi_sis_sections_generate(dvbpsi_t *p_dvbpsi, dvbpsi_si
...
@@ -539,7 +542,25 @@ dvbpsi_psi_section_t *dvbpsi_sis_sections_generate(dvbpsi_t *p_dvbpsi, dvbpsi_si
if
(
p_sis
->
i_splice_command_length
>
0xfff
)
if
(
p_sis
->
i_splice_command_length
>
0xfff
)
p_sis
->
i_splice_command_length
=
0xfff
;
/* truncate */
p_sis
->
i_splice_command_length
=
0xfff
;
/* truncate */
/* FIXME: handle splice_command_sections */
/* Handle splice_command_sections */
uint32_t
i_cmd_start
=
14
;
switch
(
p_sis
->
i_splice_command_type
)
{
case
0x00
:
/* splice_null */
assert
(
p_sis
->
i_splice_command_length
==
0
);
break
;
case
0x04
:
/* splice_schedule */
case
0x05
:
/* splice_insert */
case
0x06
:
/* time_signal */
case
0x07
:
/* bandwidth_reservation */
break
;
default:
dvbpsi_error
(
p_dvbpsi
,
"SIS decoder"
,
"invalid SIS Command found"
);
break
;
}
/* The splice command may not overrun the start of the descriptor loop */
assert
(
i_cmd_start
<
i_desc_start
);
/* Service descriptors */
/* Service descriptors */
p_current
->
p_data
[
i_desc_start
]
=
(
p_sis
->
i_descriptors_length
>>
8
);
p_current
->
p_data
[
i_desc_start
]
=
(
p_sis
->
i_descriptors_length
>>
8
);
...
...
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