summaryrefslogtreecommitdiffstats
path: root/libmpeg2
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-03-18 19:41:31 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-03-18 19:41:31 +0000
commit47ef9bb05c6942abb9fa6608f3a030da643d725b (patch)
treea4e1f7ea21c10b752eaf59c0fd6e4e0c94622f25 /libmpeg2
parent9b4c878b29b4826cc79f0761dac1bcb256b9dd6a (diff)
downloadmpv-47ef9bb05c6942abb9fa6608f3a030da643d725b.tar.bz2
mpv-47ef9bb05c6942abb9fa6608f3a030da643d725b.tar.xz
applied Walken's MB stuffing patch
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@143 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpeg2')
-rw-r--r--libmpeg2/slice.c7
1 files changed, 5 insertions, 2 deletions
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] =