vslsmas: Avoid access violation of getting composition duration by exceeding the number of samples.