[mythtv] DVB, HD-2000, and CRCs

Doug Larrick doug at ties.org
Tue Mar 22 14:02:50 UTC 2005


Daniel Thor Kristjansson wrote:
> On Tue, 22 Mar 2005, Taylor Jacob wrote:
> ]Quoting Doug Larrick <doug at ties.org>:
> ]It seems more reasonable to just drop the table to me.. Having CRC code in
> ]multiple places seems like a bad idea.. With the frequency of any section table
> ]its not worth worrying about loosing one here or there..  I figure if you are
> ]droping so many mal-formed tables that its actually a problem you won't be
> ]getting a reliable mpeg stream anyway and should fix your antenna setup..
>
> You can use the mpegts_crc32() function in ffmpeg, see pespacket.h in
> the libs/libmythtv/mpeg directory:
>
>     unsigned int CalcCRC() const {
>         return mpegts_crc32(_pesdata+1, Length()-1);
>     }
>     bool VerifyCRC() const { return CalcCRC()==CRC(); }
>

Yah, that's what I did in my quick hack.  I have some other minor
changes I plan to submit tonight; I'll submit that too, commented out,
for debug purposes.

-Doug
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050322/285766b4/signature.pgp


More information about the mythtv-dev mailing list