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
8b0c6414
Commit
8b0c6414
authored
Aug 15, 2012
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dvbpsi.c: cleanup
parent
cbb8c180
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/dvbpsi.c
src/dvbpsi.c
+4
-3
No files found.
src/dvbpsi.c
View file @
8b0c6414
...
@@ -475,8 +475,9 @@ bool dvbpsi_packet_push(dvbpsi_t *p_dvbpsi, uint8_t* p_data)
...
@@ -475,8 +475,9 @@ bool dvbpsi_packet_push(dvbpsi_t *p_dvbpsi, uint8_t* p_data)
if
(
p_section
->
b_syntax_indicator
)
if
(
p_section
->
b_syntax_indicator
)
p_section
->
p_payload_end
-=
4
;
p_section
->
p_payload_end
-=
4
;
if
((
p_section
->
p_data
[
0
]
==
0x70
)
/* TDT (has no CRC 32) */
||
(
p_section
->
p_data
[
0
]
==
0x71
)
/* RST (has no CRC 32) */
if
((
p_section
->
p_data
[
0
]
==
0x70
)
/* TDT (has no CRC 32) */
||
||
(
p_section
->
p_data
[
0
]
!=
0x72
&&
dvbpsi_ValidPSISection
(
p_section
)))
(
p_section
->
p_data
[
0
]
==
0x71
)
/* RST (has no CRC 32) */
||
(
p_section
->
p_data
[
0
]
!=
0x72
&&
dvbpsi_ValidPSISection
(
p_section
)))
{
{
/* PSI section is valid */
/* PSI section is valid */
p_section
->
i_table_id
=
p_section
->
p_data
[
0
];
p_section
->
i_table_id
=
p_section
->
p_data
[
0
];
...
@@ -494,7 +495,7 @@ bool dvbpsi_packet_push(dvbpsi_t *p_dvbpsi, uint8_t* p_data)
...
@@ -494,7 +495,7 @@ bool dvbpsi_packet_push(dvbpsi_t *p_dvbpsi, uint8_t* p_data)
{
{
p_section
->
i_extension
=
0
;
p_section
->
i_extension
=
0
;
p_section
->
i_version
=
0
;
p_section
->
i_version
=
0
;
p_section
->
b_current_next
=
1
;
p_section
->
b_current_next
=
true
;
p_section
->
i_number
=
0
;
p_section
->
i_number
=
0
;
p_section
->
i_last_number
=
0
;
p_section
->
i_last_number
=
0
;
p_section
->
p_payload_start
=
p_section
->
p_data
+
3
;
p_section
->
p_payload_start
=
p_section
->
p_data
+
3
;
...
...
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