From e292d2e037bab4010335c1b9c17392e55e171c97 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Sun, 31 Jul 2016 19:38:59 +0200 Subject: [PATCH] Fixed Blu-ray composition number when writing .sup files - thx mbcd :) --- libse/BluRaySup/BluRaySupPicture.cs | 2 +- src/Forms/ExportPngXml.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libse/BluRaySup/BluRaySupPicture.cs b/libse/BluRaySup/BluRaySupPicture.cs index 53ad4c87c..f082cb6a3 100644 --- a/libse/BluRaySup/BluRaySupPicture.cs +++ b/libse/BluRaySup/BluRaySupPicture.cs @@ -263,7 +263,7 @@ namespace Nikse.SubtitleEdit.Core.BluRaySup /// /// Create the binary stream representation of one caption /// - /// SubPicture object containing caption info + /// SubPicture object containing caption info - note that first Composition Number should be 0, then 2, 4, 8, etc. /// Bitmap /// Frames per second /// Image bottom margin diff --git a/src/Forms/ExportPngXml.cs b/src/Forms/ExportPngXml.cs index 78547fe88..636d35070 100644 --- a/src/Forms/ExportPngXml.cs +++ b/src/Forms/ExportPngXml.cs @@ -264,7 +264,8 @@ namespace Nikse.SubtitleEdit.Forms EndTime = (long)param.P.EndTime.TotalMilliseconds, Width = param.ScreenWidth, Height = param.ScreenHeight, - IsForced = param.Forced + IsForced = param.Forced, + CompositionNumber = param.P.Number * 2 }; if (param.FullFrame) {