removes the use of maxSegmentDuration instead of the calculated duration