fixes the calculation of start offset for a single period video