diff --git a/MediaBrowser.Server.Implementations/BdInfo/BdInfoExaminer.cs b/MediaBrowser.Server.Implementations/BdInfo/BdInfoExaminer.cs index 6668c5f1c..ae132a33c 100644 --- a/MediaBrowser.Server.Implementations/BdInfo/BdInfoExaminer.cs +++ b/MediaBrowser.Server.Implementations/BdInfo/BdInfoExaminer.cs @@ -123,7 +123,7 @@ namespace MediaBrowser.Server.Implementations.BdInfo /// The audio stream. private void AddAudioStream(List streams, TSAudioStream audioStream) { - streams.Add(new MediaStream + var stream = new MediaStream { BitRate = Convert.ToInt32(audioStream.BitRate), Codec = audioStream.CodecShortName, @@ -132,7 +132,14 @@ namespace MediaBrowser.Server.Implementations.BdInfo SampleRate = audioStream.SampleRate, Type = MediaStreamType.Audio, Index = streams.Count - }); + }; + + if (audioStream.LFE > 0) + { + stream.Channels = audioStream.ChannelCount + 1; + } + + streams.Add(stream); } ///