Ticket #3409: 3409-tmp-fix.patch

File 3409-tmp-fix.patch, 1019 bytes (added by danielk, 14 years ago)

Temporary fix

  • libs/libmythtv/mpeg/mpegstreamdata.cpp

     
    253253        {
    254254            if (partial->pesdata()[psip->SectionLength()] != 0xff)
    255255            {
     256#if 0 /* This doesn't work, you can't start PES packet like this
     257         because the PayloadStart() flag won't be set in this TSPacket
     258         -- dtk  May 4th, 2007
     259       */
     260
    256261                // If the next section starts in the new tspacket
    257262                // create a new partial packet to prevent overflow
    258263                if ((partial->TSSizeInBuffer() > TSPacket::SIZE) &&
     
    264269                                   new PESPacket(*tspacket));
    265270                }
    266271                else
     272#endif
    267273                {
    268274                    partial->SetPSIOffset(partial->PSIOffset() +
    269275                                          psip->SectionLength());