[PATCH] surpress false positive in CRC check in PESPacket (we really want the check in PSIPTable)

Karl Dietz dekarl at users.sourceforge.net
Mon Dec 13 23:59:34 UTC 2010


The real solution would involve making sure that TS Packets for PID 0x14
end up in the derived class instead of the base class.

fixes: #5013
---
 mythtv/libs/libmythtv/mpeg/pespacket.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mythtv/libs/libmythtv/mpeg/pespacket.cpp b/mythtv/libs/libmythtv/mpeg/pespacket.cpp
index d536f5e..597d72d 100644
--- a/mythtv/libs/libmythtv/mpeg/pespacket.cpp
+++ b/mythtv/libs/libmythtv/mpeg/pespacket.cpp
@@ -152,7 +152,7 @@ uint PESPacket::CalcCRC(void) const
 bool PESPacket::VerifyCRC(void) const
 {
     bool ret = !HasCRC() || (CalcCRC() == CRC());
-    if (!ret)
+    if (!ret && (StreamID() != 0x70)) /* no false positive for TDT tables */
     {
         VERBOSE(VB_SIPARSER,
                 QString("PESPacket: Failed CRC check 0x%1 != 0x%2 "
-- 
1.7.3.1


--------------090203040709060308060006--


More information about the mythtv-dev mailing list