Fix seek offset truncation

The cast has higher precedence than the multiplication, so for example
seeking to 3.7s resulted in 3000ms instead of 3700ms.