Fix for BDSUP cmd line convert - thx Jack1789 :)

Ralated  to #7644
This commit is contained in:
Nikolaj Olsson 2023-12-01 16:23:10 +01:00
parent a1c0dd3857
commit ee8e9ebde4

View File

@ -1749,7 +1749,14 @@ namespace Nikse.SubtitleEdit.Logic.CommandLineConvert
using (var binarySubtitleFile = new FileStream(outputFileName, FileMode.Create)) using (var binarySubtitleFile = new FileStream(outputFileName, FileMode.Create))
{ {
var isImageBased = IsImageBased(format); var isImageBased = IsImageBased(format);
BdSupSaver.SaveBdSup(fileName, sub, binaryParagraphs.Cast<IBinaryParagraph>().ToList(), form, width, height, isImageBased, binarySubtitleFile, format, cancellationToken);
List<IBinaryParagraph> bin = null;
if (bin != null)
{
bin = binaryParagraphs.Cast<IBinaryParagraph>().ToList();
}
BdSupSaver.SaveBdSup(fileName, sub, bin, form, width, height, isImageBased, binarySubtitleFile, format, cancellationToken);
} }
if (cancellationToken.IsCancellationRequested) if (cancellationToken.IsCancellationRequested)