Orbital quantization in the high-magnetic-field state of a charge-density-wave system