[libdvbpsi-devel] Add RST decoder/generator support

Roberto Corno git at videolan.org
Thu Aug 9 12:55:33 CEST 2012


libdvbpsi | branch: master | Roberto Corno <corno.roberto at gmail.com> | Mon Jul 23 14:09:30 2012 +0200| [3eab23d93e7f5274529ea69c8941cdd1cf24c2a8] | committer: Jean-Paul Saman

Add RST decoder/generator support

Signed-off-by: Jean-Paul Saman <jpsaman at videolan.org>

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

 src/Makefile.am |    3 ++-
 src/dvbpsi.c    |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 0e80e20..5048813 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -16,7 +16,7 @@ libdvbpsi_la_LDFLAGS = -version-info 8:0:0 -no-undefined
 pkginclude_HEADERS = dvbpsi.h psi.h descriptor.h demux.h \
                      tables/pat.h tables/pmt.h tables/sdt.h tables/eit.h \
                      tables/cat.h tables/nit.h tables/tot.h tables/sis.h \
-		     tables/bat.h \
+		     tables/bat.h tables/rst.h \
 		     tables/atsc_vct.h tables/atsc_stt.h \
 		     tables/atsc_eit.h tables/atsc_mgt.h \
 		     tables/atsc_ett.h \
@@ -114,6 +114,7 @@ tables_src = tables/pat.c tables/pat_private.h \
              tables/tot.c tables/tot_private.h \
              tables/sis.c tables/sis_private.h \
 	     tables/bat.c tables/bat_private.h \
+	     tables/rst.c tables/rst_private.h \
 	     tables/atsc_vct.c tables/atsc_vct.h \
 	     tables/atsc_stt.c tables/atsc_stt.h \
 	     tables/atsc_eit.c tables/atsc_eit.h \
diff --git a/src/dvbpsi.c b/src/dvbpsi.c
index cb4b383..d017f92 100644
--- a/src/dvbpsi.c
+++ b/src/dvbpsi.c
@@ -470,8 +470,8 @@ 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] != 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];



More information about the libdvbpsi-devel mailing list