Ticket #1790: buggy_dvb_cards_fix.diff

File buggy_dvb_cards_fix.diff, 687 bytes (added by Janne <janne-mythtv@…>, 14 years ago)

may fix issues with buggy dvb cards in [9897]

  • libs/libmythtv/mpeg/mpegstreamdata.cpp

     
    197197    if (partial && partial->AddTSPacket(tspacket))
    198198    {
    199199        // Discard broken packets
    200         if (!partial->IsGood())
     200        bool buggy = _have_CRC_bug &&
     201        ((TableID::PMT == partial->StreamID()) ||
     202         (TableID::PAT == partial->StreamID()));
     203        if (!buggy && !partial->IsGood())
    201204        {
    202205            VERBOSE(VB_SIPARSER, "Discarding broken PES packet");
    203206            ClearPartialPES(tspacket->PID());