mirror of
https://github.com/jellyfin/BDInfo.git
synced 2024-11-23 14:19:41 +00:00
Change the way bitrate is reported for TrueHD streams.
Bitrate in description row is now reporting TrueHD bitrate, while the bitrate row is reporting overall bitrate. Implements partly #4
This commit is contained in:
parent
ea3572385a
commit
72604c3244
@ -734,8 +734,11 @@ namespace BDInfo
|
||||
}
|
||||
if (BitRate > 0)
|
||||
{
|
||||
long CoreBitRate = 0;
|
||||
if (StreamType == TSStreamType.AC3_TRUE_HD_AUDIO && CoreStream != null)
|
||||
CoreBitRate = CoreStream.BitRate;
|
||||
description += string.Format(
|
||||
" / {0:D} kbps", (uint)Math.Round((double)BitRate / 1000));
|
||||
" / {0:D} kbps", (uint)Math.Round((double)(BitRate - CoreBitRate) / 1000));
|
||||
}
|
||||
if (BitDepth > 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user