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

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