aboutsummaryrefslogtreecommitdiff
path: root/BDInfo/TSStreamClipFile.cs
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-01-13 21:37:13 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-01-13 21:37:13 +0100
commit65bd052f3e8682d177520af57db1c8ef5cb33262 (patch)
treef5ec943937913cc7e275017e4a1055147d8ccef5 /BDInfo/TSStreamClipFile.cs
parenta36658f6f0ed342d8b55dbf7c9ff95fe3abfa818 (diff)
ReSharper conform to 'var' settings
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();