01-13-2009 05:09 AM
I have code that can create a CRC32 checksum for a given section of an MPEG2 Transmission Stream packet, and also check the CRC32 checksum of a given section of an MPEG2 Transmission Stream Packet.
The section of code that checks the CRC is working as expected - I have a valid MPEG2 TS Packet and have run it through the code yielding the expected result.
The problem I have is that the section of code to re-create the CRC32 checksum yields the wrong answer. I have checked the code against various sources and it is correct as far as I can see - perhaps I'm not using it correctly? Anyone offer any assistance?
The attached code contains the test project I have created which contains the CRC32 check and create code. The CRCCalc function works as expected, but the CRCMake function is giving me the incorrect CRC32 checksum for the given values.
Note that the CRC32 checksum is not calculated using the whole MPEG2 TS but rather one section of the payload - this is highlighted in the code (stufftdt function on line beginning *array++ = 0x73;).
01-19-2009 05:14 AM
Hi Regenersis,
I hope you are well. Thank you for your post. Your application sounds very interesting. I was wondering if it would be possible for you to give me an example of the incorrect values that you are seeing as this will help me investigate the issue further.
Please can you also inform me of what version of LabWindows/CVI that you are using.
Thank you kindly.
Best regards,
Prashant M
Applications Engineer
NI UK & Ireland