aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.MediaInfo
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-10-23 00:26:01 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-10-23 00:26:01 -0400
commit5a5b48feff3a0b0a660aaaa9bdfd04fd0fe711ed (patch)
tree47079574a89158a371f91392992e9ebe9b7840ba /MediaBrowser.MediaInfo
parent35f40993b2b85efc6fbb677d373b337aebfe0465 (diff)
added new cabac value
Diffstat (limited to 'MediaBrowser.MediaInfo')
-rw-r--r--MediaBrowser.MediaInfo/MediaInfoLib.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/MediaBrowser.MediaInfo/MediaInfoLib.cs b/MediaBrowser.MediaInfo/MediaInfoLib.cs
index 64842edcbe..fa644aee0a 100644
--- a/MediaBrowser.MediaInfo/MediaInfoLib.cs
+++ b/MediaBrowser.MediaInfo/MediaInfoLib.cs
@@ -24,6 +24,12 @@ namespace MediaBrowser.MediaInfo
result.IsInterlaced = text.IndexOf("interlac", StringComparison.OrdinalIgnoreCase) != -1;
}
+ text = GetValue(lib, videoStreamIndex, new[] { "Format_Settings_CABAC", "Format_Settings_CABAC/String" });
+ if (!string.IsNullOrWhiteSpace(text))
+ {
+ result.IsCabac = string.Equals(text, "yes", StringComparison.OrdinalIgnoreCase);
+ }
+
int bitDepth;
text = GetValue(lib, videoStreamIndex, new[] { "BitDepth", "BitDepth/String" });
@@ -51,6 +57,7 @@ namespace MediaBrowser.MediaInfo
public class MediaInfoResult
{
+ public bool? IsCabac { get; set; }
public bool? IsInterlaced { get; set; }
public int? BitDepth { get; set; }
public int? RefFrames { get; set; }