Skip to content

Commit 39e05a7

Browse files
Get rid of old hack in VerifyCRC(), hasn't been needed for years..
1 parent 2ef3ef3 commit 39e05a7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

mythtv/libs/libmythtv/mpeg/pespacket.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,10 @@ uint PESPacket::CalcCRC(void) const
152152

153153
bool PESPacket::VerifyCRC(void) const
154154
{
155-
/* ignore HasCRC for stream id 0x70 (DVB TDT tables)
156-
* real solution would be not using PESPacket for mpeg section/dvb tables
157-
* since they are not. HasCRC() is not valid for them
158-
*/
159-
bool ret = !HasCRC() || (StreamID() == 0x70) || (CalcCRC() == CRC());
155+
bool ret = !HasCRC() || (CalcCRC() == CRC());
160156
if (!ret)
161157
{
162-
LOG(VB_SIPARSER, LOG_ERR,
158+
LOG(VB_SIPARSER, LOG_INFO,
163159
QString("PESPacket: Failed CRC check 0x%1 != 0x%2 "
164160
"for StreamID = 0x%3")
165161
.arg(CRC(),0,16).arg(CalcCRC(),0,16).arg(StreamID(),0,16));

0 commit comments

Comments
 (0)