diff --git a/libse/SubtitleFormats/JsonType11.cs b/libse/SubtitleFormats/JsonType11.cs index 879ad9f01..8ebfe4b78 100644 --- a/libse/SubtitleFormats/JsonType11.cs +++ b/libse/SubtitleFormats/JsonType11.cs @@ -66,12 +66,12 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats string text = Json.ReadTag(s, "line"); if (start != null && text != null) { - double startSeconds; - if (double.TryParse(start, System.Globalization.NumberStyles.AllowDecimalPoint, System.Globalization.CultureInfo.InvariantCulture, out startSeconds)) + double startMilliseconds; + if (double.TryParse(start, System.Globalization.NumberStyles.AllowDecimalPoint, System.Globalization.CultureInfo.InvariantCulture, out startMilliseconds)) { var duration = Utilities.GetOptimalDisplayMilliseconds(text); - var endMilliseconds = startSeconds * TimeCode.BaseUnit + duration; - subtitle.Paragraphs.Add(new Paragraph(Json.DecodeJsonText(text), startSeconds * TimeCode.BaseUnit, endMilliseconds)); + var endMilliseconds = startMilliseconds + duration; + subtitle.Paragraphs.Add(new Paragraph(Json.DecodeJsonText(text), startMilliseconds, endMilliseconds)); } else {