Avoid negative durations in case there is a single packet in the current segment, since in that case the end time is still set to the previous segment end time.