--- branches/release-1_3-branch/xvidcore/src/bitstream/mbcoding.c 2019/11/12 14:41:36 2179 +++ branches/release-1_3-branch/xvidcore/src/bitstream/mbcoding.c 2019/11/12 14:48:35 2180 @@ -901,8 +901,8 @@ index -= 4; - BitstreamSkip(bs, TMNMVtab2[index].len); - return TMNMVtab2[index].code; + BitstreamSkip(bs, TMNMVtab2[index&0x7f].len); + return TMNMVtab2[index&0x7f].code; } @@ -1965,7 +1965,8 @@ {14, 10}, {14, 10}, {14, 10}, {14, 10}, {-14, 10}, {-14, 10}, {-14, 10}, {-14, 10}, {13, 10}, {13, 10}, {13, 10}, {13, 10}, - {-13, 10}, {-13, 10}, {-13, 10}, {-13, 10} + {-13, 10}, {-13, 10}, {-13, 10}, {-13, 10}, + {0, 0}, {0, 0}, {0, 0}, {0, 0} }; short const dc_threshold[] = {