jpeg2000: Fix compute precedence error in lut_gain index