More accurate video pts calculation; may help with #1663.