Ticket #1024: decode.c.patch

File decode.c.patch, 571 bytes (added by dax@…, 18 years ago)

Patch for Signal 11 in decode.c

  • libmpeg2/decode.c

    old new  
    356356    fbuf->buf[2] = buf[2];
    357357    fbuf->id = id;
    358358    // HACK! FIXME! At first I frame, copy pointers to prediction frame too!
    359     if (mpeg2dec->custom_fbuf && !mpeg2dec->fbuf[1]->buf[0]){
     359    if (mpeg2dec->custom_fbuf && mpeg2dec->fbuf[1] && !mpeg2dec->fbuf[1]->buf[0]){
    360360               mpeg2dec->fbuf[1]->buf[0]=buf[0];
    361361               mpeg2dec->fbuf[1]->buf[1]=buf[1];
    362362               mpeg2dec->fbuf[1]->buf[2]=buf[2];