lavf/segment: set segment end time when the first packet arrives