mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:16:47 +00:00
update bit depth probe
This commit is contained in:
parent
c68a03b3ab
commit
d59e4ff357
2 changed files with 14 additions and 0 deletions
|
|
@ -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) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue