Allow empty time codes for format "Unknown 66" - thx darnn :)

Fix #8288
This commit is contained in:
Nikolaj Olsson 2024-05-01 16:38:25 +02:00
parent c31518adc3
commit bc8c4c0cb5

View File

@ -83,15 +83,8 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
}
}
else if (string.IsNullOrWhiteSpace(line))
{
if (Math.Abs(p.StartTime.TotalMilliseconds) < 0.001 && Math.Abs(p.EndTime.TotalMilliseconds) < 0.001)
{
_errorCount++;
}
else
{
subtitle.Paragraphs.Add(p);
}
p = new Paragraph();
}