Visual Studio Reformat: BDInfo

This commit is contained in:
Erwin de Haan 2019-01-13 20:15:15 +01:00
parent 9dcaafe700
commit 1077570ca8
5 changed files with 133 additions and 134 deletions

View File

@ -17,7 +17,6 @@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//============================================================================= //=============================================================================
using System.IO;
using MediaBrowser.Model.IO; using MediaBrowser.Model.IO;
// TODO: Do more interesting things here... // TODO: Do more interesting things here...

View File

@ -21,7 +21,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Text;
using MediaBrowser.Model.IO; using MediaBrowser.Model.IO;
using MediaBrowser.Model.Text; using MediaBrowser.Model.Text;
@ -446,7 +445,7 @@ namespace BDInfo
chapterIndex < chapterCount; chapterIndex < chapterCount;
chapterIndex++) chapterIndex++)
{ {
int chapterType = data[pos+1]; int chapterType = data[pos + 1];
if (chapterType == 1) if (chapterType == 1)
{ {

View File

@ -21,7 +21,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Text;
using MediaBrowser.Model.IO; using MediaBrowser.Model.IO;
using MediaBrowser.Model.Text; using MediaBrowser.Model.Text;
@ -37,7 +36,7 @@ namespace BDInfo
public string Name = null; public string Name = null;
public Dictionary<ushort, TSStream> Streams = public Dictionary<ushort, TSStream> Streams =
new Dictionary<ushort,TSStream>(); new Dictionary<ushort, TSStream>();
public TSStreamClipFile( public TSStreamClipFile(
FileSystemMetadata fileInfo, IFileSystem fileSystem, ITextEncoding textEncoding) FileSystemMetadata fileInfo, IFileSystem fileSystem, ITextEncoding textEncoding)

View File

@ -670,7 +670,8 @@ namespace BDInfo
parser.PAT[parser.PATOffset++] = buffer[i++]; parser.PAT[parser.PATOffset++] = buffer[i++];
parser.PATSectionLength--; parser.PATSectionLength--;
parser.PacketLength--; parser.PacketLength--;
} --i; }
--i;
if (parser.PATSectionLength == 0) if (parser.PATSectionLength == 0)
{ {
@ -801,7 +802,8 @@ namespace BDInfo
PMT[parser.PMTOffset++] = buffer[i++]; PMT[parser.PMTOffset++] = buffer[i++];
--parser.PMTSectionLength; --parser.PMTSectionLength;
--parser.PacketLength; --parser.PacketLength;
} --i; }
--i;
if (parser.PMTSectionLength == 0) if (parser.PMTSectionLength == 0)
{ {