[Mp4-tech] Re: CRC32 of a TS packet

Tsviatko Jongov tsviatko playbox.tv
Wed May 16 15:18:01 EDT 2007


Hi,
First, the CRC polynomial for MPEG is 0x04C11DB7 (ISO/IEC 13818-1 or  
http://en.wikipedia.org/wiki/Crc32).
For PAT, CAT and PMT, you must calculate the CRC of all bytes starting 
from "table_id" (inclusive) and finishing with the byte just before the 
CRC field in the PAT/CAT/PMT table. Then set the CRC32 value. You can 
check your calculations by running CRC on whole data including the CRC32 
field - the result must be 0.
Regards,
Tsviatko Jongov
http://tsviatko.jongov.com


More information about the Mp4-tech mailing list