Ticket #1062: patch-pmt-partial.diff

File patch-pmt-partial.diff, 622 bytes (added by jyrki.n@…, 15 years ago)

Patch for PAT/PMT tables

  • libs/libmythtv/mpeg/mpegstreamdata.cpp

     
    174174    const unsigned char* pesdata = tspacket->data() + offset;
    175175    const int pes_length = (pesdata[2] & 0x0f) << 8 | pesdata[3];
    176176    const PESPacket pes = PESPacket::View(*tspacket);
    177     if ((pes_length + offset)>188)
     177    if ((pes_length + offset + 4)>188)
    178178    {
    179179        SavePartialPES(tspacket->PID(), new PESPacket(*tspacket));
    180180        moreTablePackets = false;