Ticket #1456: pespacket_debug.patch

File pespacket_debug.patch, 738 bytes (added by Janne <janne-mythtv@…>, 15 years ago)

debugging patch for invalid pespackets

  • libs/libmythtv/mpeg/pespacket.h

     
    5858          _fullbuffer(const_cast<unsigned char*>(pesdata)),
    5959          _pesdataSize(0), _allocSize(0)
    6060    {
     61        bool test = false;
     62        if (!HasCRC()) {
     63            test = true;
     64            VERBOSE(VB_SIPARSER, QString("PESPacket has no CRC and has length %1").arg(Length()));
     65        }
     66
    6167        _badPacket = !VerifyCRC();
    6268        _pesdataSize = max(Length()-1 + (HasCRC() ? 4 : 0), (uint)0);
     69
     70        if (test)
     71            VERBOSE(VB_SIPARSER, "PESPacket created.");
    6372    }
    6473
    6574  private: