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
00af91a2
Commit
00af91a2
authored
Oct 02, 2013
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/dvbpsi.c: b_syntax_indicator and i_table_id were used before being initialized.
parent
6e0c0008
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/dvbpsi.c
src/dvbpsi.c
+3
-2
No files found.
src/dvbpsi.c
View file @
00af91a2
...
@@ -404,13 +404,15 @@ bool dvbpsi_packet_push(dvbpsi_t *p_dvbpsi, uint8_t* p_data)
...
@@ -404,13 +404,15 @@ bool dvbpsi_packet_push(dvbpsi_t *p_dvbpsi, uint8_t* p_data)
else
else
{
{
bool
b_valid_crc32
=
false
;
bool
b_valid_crc32
=
false
;
bool
has_crc32
=
dvbpsi_has_CRC32
(
p_section
)
;
bool
has_crc32
;
/* PSI section is complete */
/* PSI section is complete */
p_section
->
i_table_id
=
p_section
->
p_data
[
0
];
p_section
->
b_syntax_indicator
=
p_section
->
p_data
[
1
]
&
0x80
;
p_section
->
b_syntax_indicator
=
p_section
->
p_data
[
1
]
&
0x80
;
p_section
->
b_private_indicator
=
p_section
->
p_data
[
1
]
&
0x40
;
p_section
->
b_private_indicator
=
p_section
->
p_data
[
1
]
&
0x40
;
/* Update the end of the payload if CRC_32 is present */
/* Update the end of the payload if CRC_32 is present */
has_crc32
=
dvbpsi_has_CRC32
(
p_section
);
if
(
p_section
->
b_syntax_indicator
||
has_crc32
)
if
(
p_section
->
b_syntax_indicator
||
has_crc32
)
p_section
->
p_payload_end
-=
4
;
p_section
->
p_payload_end
-=
4
;
...
@@ -421,7 +423,6 @@ bool dvbpsi_packet_push(dvbpsi_t *p_dvbpsi, uint8_t* p_data)
...
@@ -421,7 +423,6 @@ bool dvbpsi_packet_push(dvbpsi_t *p_dvbpsi, uint8_t* p_data)
if
(
!
has_crc32
||
b_valid_crc32
)
if
(
!
has_crc32
||
b_valid_crc32
)
{
{
/* PSI section is valid */
/* PSI section is valid */
p_section
->
i_table_id
=
p_section
->
p_data
[
0
];
if
(
p_section
->
b_syntax_indicator
)
if
(
p_section
->
b_syntax_indicator
)
{
{
p_section
->
i_extension
=
(
p_section
->
p_data
[
3
]
<<
8
)
p_section
->
i_extension
=
(
p_section
->
p_data
[
3
]
<<
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