diff --git a/src/libse/Common/TimeCode.cs b/src/libse/Common/TimeCode.cs index de50c43fa..ebf682686 100644 --- a/src/libse/Common/TimeCode.cs +++ b/src/libse/Common/TimeCode.cs @@ -31,7 +31,8 @@ namespace Nikse.SubtitleEdit.Core.Common { milliseconds *= 10; } - } else { + } else if (parts[3].Length > 3) + { for (int msLength = parts[3].Length; msLength > 3; msLength --) { milliseconds /= 10; @@ -52,7 +53,8 @@ namespace Nikse.SubtitleEdit.Core.Common { milliseconds *= 10; } - } else { + } else if (parts[3].Length > 3) + { for (int msLength = parts[3].Length; msLength > 3; msLength --) { milliseconds /= 10;