Fix not showing vobsub from mp4 - thx Luc :)

This commit is contained in:
niksedk 2022-09-18 19:54:41 +02:00
parent 780d9d795e
commit f5317c2776

View File

@ -254,7 +254,11 @@ namespace Nikse.SubtitleEdit.Core.ContainerFormats.Mp4.Boxes
timeEnd = allTimes[index + 1];
}
if (Texts.Count > textIndex)
if (_mdia.IsVobSubSubtitle && SubPictures.Count > textIndex)
{
paragraphs.Add(new Paragraph(string.Empty, timeStart * 1000.0, timeEnd * 1000.0));
}
else if (Texts.Count > textIndex)
{
paragraphs.Add(new Paragraph(Texts[textIndex], timeStart * 1000.0, timeEnd * 1000.0));
}