diff options
Diffstat (limited to 'MediaBrowser.MediaInfo/MediaInfoLib.cs')
| -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; } |
