# HG changeset patch # User arpi_esp # Date 984944491 0 # Node ID 300fea6ea86a8b811d1a3ce5a0d2c427ccd141ed # Parent 0b6b7cad24efb2746eaf68c1d1daf0b622f36d75 applied Walken's MB stuffing patch diff -r 0b6b7cad24ef -r 300fea6ea86a libmpeg2/slice.c --- a/libmpeg2/slice.c Sun Mar 18 19:27:28 2001 +0000 +++ b/libmpeg2/slice.c Sun Mar 18 19:41:31 2001 +0000 @@ -976,7 +976,8 @@ break; default: /* end of slice, or error */ // printf("MB error: %d \n",(UBITS (bit_buf, 11))); // FIXME! - return 0; +// return 0; + return -1; } } @@ -1755,13 +1756,15 @@ NEEDBITS (bit_buf, bits, bit_ptr); - if (bit_buf & 0x80000000) { + if (0 /* FIXME */ && (bit_buf & 0x80000000)) { DUMPBITS (bit_buf, bits, 1); } else { int mba_inc; mba_inc = get_macroblock_address_increment (picture); if (!mba_inc) + continue; + else if (mba_inc < 0) break; picture->dc_dct_pred[0] = picture->dc_dct_pred[1] =