Changed time code to frames calculation to properly calculate non-integer frame rates.