Skip audio files - thx Leon :)

Work on #8272
This commit is contained in:
Nikolaj Olsson 2024-04-29 06:43:30 +02:00
parent 6947faeba2
commit f8db47dba6

View File

@ -2207,6 +2207,12 @@ namespace Nikse.SubtitleEdit.Forms
height = vInfo.Height;
}
if (width == 0 || height == 0)
{
SeLogger.Error("Skipping burn-in file with no video: " + fileName);
return; // skip audio or damaged files
}
var listViewItem = new ListViewItem(fileName);
listViewItem.Tag = item;
listViewItem.SubItems.Add($"{width}x{height}");