avcodec/jpeg2000dec: Use ff_set_dimensions()