mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
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:
parent
7c43c2fa06
commit
2611b12970
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue