From 47ef9bb05c6942abb9fa6608f3a030da643d725b Mon Sep 17 00:00:00 2001 From: arpi_esp Date: Sun, 18 Mar 2001 19:41:31 +0000 Subject: applied Walken's MB stuffing patch git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@143 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpeg2/slice.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libmpeg2') diff --git a/libmpeg2/slice.c b/libmpeg2/slice.c index 1d85cc5cdc..a1a2bcb7fa 100644 --- a/libmpeg2/slice.c +++ b/libmpeg2/slice.c @@ -976,7 +976,8 @@ static inline int get_macroblock_address_increment (picture_t * picture) 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 @@ int slice_process (picture_t * picture, uint8_t code, uint8_t * buffer) 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] = -- cgit v1.2.3