Ticket #1024: decode.c.patch
| File decode.c.patch, 571 bytes (added by , 18 years ago) |
|---|
-
libmpeg2/decode.c
old new 356 356 fbuf->buf[2] = buf[2]; 357 357 fbuf->id = id; 358 358 // 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]){ 360 360 mpeg2dec->fbuf[1]->buf[0]=buf[0]; 361 361 mpeg2dec->fbuf[1]->buf[1]=buf[1]; 362 362 mpeg2dec->fbuf[1]->buf[2]=buf[2];
