applied Walken's MB stuffing patch

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@143 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi_esp 2001-03-18 19:41:31 +00:00
parent 9b4c878b29
commit 47ef9bb05c
1 changed files with 5 additions and 2 deletions

View File

@ -976,7 +976,8 @@ static inline int get_macroblock_address_increment (picture_t * picture)
break; break;
default: /* end of slice, or error */ default: /* end of slice, or error */
// printf("MB error: %d \n",(UBITS (bit_buf, 11))); // FIXME! // 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); NEEDBITS (bit_buf, bits, bit_ptr);
if (bit_buf & 0x80000000) { if (0 /* FIXME */ && (bit_buf & 0x80000000)) {
DUMPBITS (bit_buf, bits, 1); DUMPBITS (bit_buf, bits, 1);
} else { } else {
int mba_inc; int mba_inc;
mba_inc = get_macroblock_address_increment (picture); mba_inc = get_macroblock_address_increment (picture);
if (!mba_inc) if (!mba_inc)
continue;
else if (mba_inc < 0)
break; break;
picture->dc_dct_pred[0] = picture->dc_dct_pred[1] = picture->dc_dct_pred[0] = picture->dc_dct_pred[1] =