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:
Juergen Tem 2018-05-06 00:10:33 +02:00
parent ea3572385a
commit 72604c3244
No known key found for this signature in database
GPG Key ID: 0A9625B1654DCE28

View File

@ -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)
{