Fix for DialogStyleSegment length - thx vcubicibo :)

Fix  #7021
This commit is contained in:
niksedk 2023-06-19 21:00:08 +02:00
parent cb410ce428
commit 08c45d1615

View File

@ -272,7 +272,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
var size = regionStyle.Length + 5;
stream.WriteWord(size);
stream.WriteByte(SegmentTypeDialogStyle); // 0x81
stream.WriteWord(size - 3);
stream.WriteWord(size - 5); // DialogStyleSegment length
stream.Write(regionStyle, 0, regionStyle.Length);
stream.WriteWord(numberOfSubtitles);
}