fix timecode > 2^31 samples calculation on 32bit systems