[libdvbpsi-devel] dvbpsi.c: cleanup

Jean-Paul Saman git at videolan.org
Wed Aug 15 16:18:02 CEST 2012


libdvbpsi | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Wed Aug 15 15:17:33 2012 +0200| [8b0c641494fb08fe746027c27fb2ba3ca132b30d] | committer: Jean-Paul Saman

dvbpsi.c: cleanup

> http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=8b0c641494fb08fe746027c27fb2ba3ca132b30d
---

 src/dvbpsi.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/dvbpsi.c b/src/dvbpsi.c
index e8fe971..e07623e 100644
--- a/src/dvbpsi.c
+++ b/src/dvbpsi.c
@@ -475,8 +475,9 @@ bool dvbpsi_packet_push(dvbpsi_t *p_dvbpsi, uint8_t* p_data)
                 if (p_section->b_syntax_indicator)
                     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) */
-                    || (p_section->p_data[0] != 0x72 && dvbpsi_ValidPSISection(p_section)))
+                if ((p_section->p_data[0] == 0x70) /* TDT (has no CRC 32) */ ||
+                    (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 */
                     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)
                     {
                         p_section->i_extension = 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_last_number = 0;
                         p_section->p_payload_start = p_section->p_data + 3;



More information about the libdvbpsi-devel mailing list