简体   繁体   English

检查传输流PAT部分中的CRC32-C#

[英]check CRC32 in transport stream PAT section - C#

The question is how to check / regenerate crc32 PAT MPEG-TS table. 问题是如何检查/重新生成crc32 PAT MPEG-TS表。

I have an array of bytes (Byte[] TS). 我有一个字节数组(Byte [] TS)。 All offset read normally. 所有偏移量均正常读取。 CRC32 I can not get. 我无法获得CRC32。 All algorithms do not give the correct result. 所有算法均未给出正确的结果。

The CRC Decoder Model specified in the Annex A of ISO/IEC 13818-1 is MSB (most significant bit first). ISO / IEC 13818-1附件A中指定的CRC解码器模型是MSB (最高有效位在前)。 The function in your link uses the default polynomial for Zip which is LSB (least significant bit first). 链接中的函数对Zip使用默认多项式,即LSB (最低有效位在前)。

You must use 0x04C11DB7 for the polynomial instead of the reversed form 0xEDB88320 . 您必须对多项式使用0x04C11DB7 ,而不要使用相反的形式0xEDB88320

See the Specification and Standards and common use sections on the Wikipedia CRC page . 请参阅Wikipedia CRC页面上的规范标准以及常用部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM