--- trunk/xvidcore/src/bitstream/mbcoding.c 2003/02/21 00:00:57 882 +++ trunk/xvidcore/src/bitstream/mbcoding.c 2003/02/21 08:32:34 883 @@ -212,7 +212,7 @@ = (ESCAPE3 << 21) | (last << 20) | (run << 14) | (1 << 13) | ((level & 0xfff) << 1) | 1; coeff_VLC[intra][last][level + offset][run].len = 30; coeff_VLC[intra][last][offset - level][run].code - = (ESCAPE3 << 21) | (last << 20) | (run << 14) | (1 << 13) | ((-level & 0xfff) << 1) | 1; + = (ESCAPE3 << 21) | (last << 20) | (run << 14) | (1 << 13) | ((-(int32_t)level & 0xfff) << 1) | 1; coeff_VLC[intra][last][offset - level][run].len = 30; } continue;