mpegtsparse: don't calculate the CRC for TOT tables. Fixes #635281.

TOT tables, with table_id=0x73, don't have a CRC, so don't calcute it
This commit is contained in:
Andoni Morales Alastruey 2010-11-19 17:22:06 +01:00 committed by Alessandro Decina
parent 7c43c2fa06
commit 2611b12970

View file

@ -1135,8 +1135,8 @@ mpegts_parse_handle_psi (MpegTSParse * parse, MpegTSPacketizerSection * section)
gboolean res = TRUE; gboolean res = TRUE;
GstStructure *structure = NULL; GstStructure *structure = NULL;
/* table ids 0x70 - 0x72 do not have a crc */ /* table ids 0x70 - 0x73 do not have a crc */
if (G_LIKELY (section->table_id < 0x70 || section->table_id > 0x72)) { if (G_LIKELY (section->table_id < 0x70 || section->table_id > 0x73)) {
if (G_UNLIKELY (mpegts_parse_calc_crc32 (GST_BUFFER_DATA (section->buffer), if (G_UNLIKELY (mpegts_parse_calc_crc32 (GST_BUFFER_DATA (section->buffer),
GST_BUFFER_SIZE (section->buffer)) != 0)) { GST_BUFFER_SIZE (section->buffer)) != 0)) {
GST_WARNING_OBJECT (parse, "bad crc in psi pid 0x%x", section->pid); GST_WARNING_OBJECT (parse, "bad crc in psi pid 0x%x", section->pid);