diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-10-23 00:26:01 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-10-23 00:26:01 -0400 |
| commit | 5a5b48feff3a0b0a660aaaa9bdfd04fd0fe711ed (patch) | |
| tree | 47079574a89158a371f91392992e9ebe9b7840ba /MediaBrowser.MediaInfo | |
| parent | 35f40993b2b85efc6fbb677d373b337aebfe0465 (diff) | |
added new cabac value
Diffstat (limited to 'MediaBrowser.MediaInfo')
| -rw-r--r-- | MediaBrowser.MediaInfo/MediaInfoLib.cs | 7 |
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; } |
