Commit 8b0c6414 authored by Jean-Paul Saman's avatar Jean-Paul Saman

dvbpsi.c: cleanup

parent cbb8c180
...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment