avcodec/jpeg2000dec: Check that there are enough bytes for all tiles