dvbpsi.c: cleanup

[email protected] (Jean-Paul Saman)
Newsgroups gmane.comp.video.videolan.libdvbpsi.devel
Message-ID <[email protected]>
libdvbpsi | branch: master | Jean-Paul Saman <[email protected]> | 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;

_______________________________________________
libdvbpsi-devel mailing list
[email protected]
http://mailman.videolan.org/listinfo/libdvbpsi-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.