avcodec/jpeg2000dec: fix context consistency with too large lowres