Improved SegmentMaker.target_duration logic.