const int stride= 16*2;
const int xStride= 16;
int i;
- int temp[8];
+ unsigned temp[8];
static const uint8_t x_offset[2]={0, 16};
dctcoef *block = (dctcoef*)_block;
for(i=0; i<4; i++){
- temp[2*i+0] = block[stride*i + xStride*0] + block[stride*i + xStride*1];
- temp[2*i+1] = block[stride*i + xStride*0] - block[stride*i + xStride*1];
+ temp[2*i+0] = block[stride*i + xStride*0] + (unsigned)block[stride*i + xStride*1];
+ temp[2*i+1] = block[stride*i + xStride*0] - (unsigned)block[stride*i + xStride*1];
}
for(i=0; i<2; i++){