fixes the incorrect index when getting the adaptation set item to calculate live start offset