Commit 3eab23d9 authored by Roberto Corno's avatar Roberto Corno Committed by Jean-Paul Saman

Add RST decoder/generator support

Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 87b7cc9e
...@@ -16,7 +16,7 @@ libdvbpsi_la_LDFLAGS = -version-info 8:0:0 -no-undefined ...@@ -16,7 +16,7 @@ libdvbpsi_la_LDFLAGS = -version-info 8:0:0 -no-undefined
pkginclude_HEADERS = dvbpsi.h psi.h descriptor.h demux.h \ pkginclude_HEADERS = dvbpsi.h psi.h descriptor.h demux.h \
tables/pat.h tables/pmt.h tables/sdt.h tables/eit.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/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_vct.h tables/atsc_stt.h \
tables/atsc_eit.h tables/atsc_mgt.h \ tables/atsc_eit.h tables/atsc_mgt.h \
tables/atsc_ett.h \ tables/atsc_ett.h \
...@@ -114,6 +114,7 @@ tables_src = tables/pat.c tables/pat_private.h \ ...@@ -114,6 +114,7 @@ tables_src = tables/pat.c tables/pat_private.h \
tables/tot.c tables/tot_private.h \ tables/tot.c tables/tot_private.h \
tables/sis.c tables/sis_private.h \ tables/sis.c tables/sis_private.h \
tables/bat.c tables/bat_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_vct.c tables/atsc_vct.h \
tables/atsc_stt.c tables/atsc_stt.h \ tables/atsc_stt.c tables/atsc_stt.h \
tables/atsc_eit.c tables/atsc_eit.h \ tables/atsc_eit.c tables/atsc_eit.h \
......
...@@ -470,8 +470,8 @@ bool dvbpsi_packet_push(dvbpsi_t *p_dvbpsi, uint8_t* p_data) ...@@ -470,8 +470,8 @@ 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) */ || 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))) || (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];
......
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