jpeg2000: Propagate error code from get_cox()