Ticket #1790: pes_assembly_pesdata_fix.diff

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

reset the pointer to pesdata after copying the buffer

  • libs/libmythtv/mpeg/pespacket.cpp

     
    5656            memcpy(nbuf, _fullbuffer, _pesdataSize);
    5757            pes_free(_fullbuffer);
    5858            _fullbuffer = nbuf;
     59            _pesdata    = _fullbuffer + _psiOffset + 1;
    5960            _allocSize  = sz;
    6061        }
    6162