avcodec/jpeg2000dsp: Fix integer overflows in ict_int()