aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-12-27 01:05:37 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-12-27 01:07:13 -0500
commit94ec8d87b8479fa94dec579b2c04f3dfe3eba176 (patch)
treee45cc58f363a210cdc407e82caad9dd973eeb295 /MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs
parent0cbc9c7900145099acb3c1a455f508b4b6320ebf (diff)
update bit depth probe
Diffstat (limited to 'MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs')
-rw-r--r--MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs
index befff72d1..b52446ac6 100644
--- a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs
+++ b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs
@@ -164,6 +164,10 @@ namespace MediaBrowser.MediaEncoding.Probing
{
stream.BitDepth = streamInfo.bits_per_sample;
}
+ else if (streamInfo.bits_per_raw_sample > 0)
+ {
+ stream.BitDepth = streamInfo.bits_per_raw_sample;
+ }
}
else if (string.Equals(streamInfo.codec_type, "subtitle", StringComparison.OrdinalIgnoreCase))
{
@@ -186,6 +190,10 @@ namespace MediaBrowser.MediaEncoding.Probing
{
stream.BitDepth = streamInfo.bits_per_sample;
}
+ else if (streamInfo.bits_per_raw_sample > 0)
+ {
+ stream.BitDepth = streamInfo.bits_per_raw_sample;
+ }
//stream.IsAnamorphic = string.Equals(streamInfo.sample_aspect_ratio, "0:1", StringComparison.OrdinalIgnoreCase) ||
// string.Equals(stream.AspectRatio, "2.35:1", StringComparison.OrdinalIgnoreCase) ||