From 57f5f06c8f410c3ab1110270a39ceebb24d9a22f Mon Sep 17 00:00:00 2001 From: niksedk Date: Fri, 10 Jan 2014 14:29:39 +0000 Subject: [PATCH] Working on dvb sub git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@2361 99eadd0c-20b8-1223-b5c4-2a2b2df33de2 --- src/Logic/TransportStream/DvbSubPes.cs | 7 +++---- src/SubtitleEdit.csproj | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Logic/TransportStream/DvbSubPes.cs b/src/Logic/TransportStream/DvbSubPes.cs index 345b2e3c9..c65fb6dcb 100644 --- a/src/Logic/TransportStream/DvbSubPes.cs +++ b/src/Logic/TransportStream/DvbSubPes.cs @@ -276,20 +276,19 @@ namespace Nikse.SubtitleEdit.Logic.TransportStream } } - Bitmap bmp = new Bitmap(width, height); + var bmp = new Bitmap(width, height); foreach (ObjectDataSegment ods in ObjectDataList) { Bitmap odsImage = GetImage(ods); if (odsImage != null) { Point odsPoint = GetImagePosition(ods); - using (Graphics g = Graphics.FromImage(bmp)) + using (var g = Graphics.FromImage(bmp)) { g.DrawImageUnscaled(odsImage, odsPoint); } } } - return bmp; } @@ -330,7 +329,7 @@ namespace Nikse.SubtitleEdit.Logic.TransportStream public ulong PresentationTimeStampToMilliseconds() { if (PresentationTimeStamp.HasValue) - return (ulong)Math.Round(PresentationTimeStamp.Value + 45.0 / 90.0); + return (ulong)Math.Round((PresentationTimeStamp.Value + 45.0) / 90.0); else return 0; } diff --git a/src/SubtitleEdit.csproj b/src/SubtitleEdit.csproj index bb2a47a27..2a2b0eb65 100644 --- a/src/SubtitleEdit.csproj +++ b/src/SubtitleEdit.csproj @@ -1062,7 +1062,6 @@ -