0

The question is how to check / regenerate crc32 PAT MPEG-TS table.

I have an array of bytes (Byte[] TS). All offset read normally. CRC32 I can not get. All algorithms do not give the correct result.

1 Answers1

2

The CRC Decoder Model specified in the Annex A of ISO/IEC 13818-1 is MSB (most significant bit first). The function in your link uses the default polynomial for Zip which is LSB (least significant bit first).

You must use 0x04C11DB7 for the polynomial instead of the reversed form 0xEDB88320.

See the Specification and Standards and common use sections on the Wikipedia CRC page.

aergistal
  • 29,947
  • 5
  • 70
  • 92