aboutsummaryrefslogtreecommitdiff
path: root/BDInfo/TSStreamClipFile.cs
diff options
context:
space:
mode:
Diffstat (limited to 'BDInfo/TSStreamClipFile.cs')
-rw-r--r--BDInfo/TSStreamClipFile.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/BDInfo/TSStreamClipFile.cs b/BDInfo/TSStreamClipFile.cs
index 6aed7e4d4..be6299e1a 100644
--- a/BDInfo/TSStreamClipFile.cs
+++ b/BDInfo/TSStreamClipFile.cs
@@ -114,7 +114,7 @@ namespace BDInfo
streamOffset += 2;
- TSStreamType streamType = (TSStreamType)
+ var streamType = (TSStreamType)
clipData[streamOffset + 1];
switch (streamType)
{
@@ -127,11 +127,11 @@ namespace BDInfo
case TSStreamType.MPEG2_VIDEO:
case TSStreamType.VC1_VIDEO:
{
- TSVideoFormat videoFormat = (TSVideoFormat)
+ var videoFormat = (TSVideoFormat)
(clipData[streamOffset + 2] >> 4);
- TSFrameRate frameRate = (TSFrameRate)
+ var frameRate = (TSFrameRate)
(clipData[streamOffset + 2] & 0xF);
- TSAspectRatio aspectRatio = (TSAspectRatio)
+ var aspectRatio = (TSAspectRatio)
(clipData[streamOffset + 3] >> 4);
stream = new TSVideoStream();
@@ -168,9 +168,9 @@ namespace BDInfo
string languageCode =
_textEncoding.GetASCIIEncoding().GetString(languageBytes, 0, languageBytes.Length);
- TSChannelLayout channelLayout = (TSChannelLayout)
+ var channelLayout = (TSChannelLayout)
(clipData[streamOffset + 2] >> 4);
- TSSampleRate sampleRate = (TSSampleRate)
+ var sampleRate = (TSSampleRate)
(clipData[streamOffset + 2] & 0xF);
stream = new TSAudioStream();