avcodec/4xm: Fix signed integer overflows in idct()