mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
fixes #298 - 5.1 chan from bd info
This commit is contained in:
parent
8ee1874e8c
commit
7162566f56
@ -123,7 +123,7 @@ namespace MediaBrowser.Server.Implementations.BdInfo
|
|||||||
/// <param name="audioStream">The audio stream.</param>
|
/// <param name="audioStream">The audio stream.</param>
|
||||||
private void AddAudioStream(List<MediaStream> streams, TSAudioStream audioStream)
|
private void AddAudioStream(List<MediaStream> streams, TSAudioStream audioStream)
|
||||||
{
|
{
|
||||||
streams.Add(new MediaStream
|
var stream = new MediaStream
|
||||||
{
|
{
|
||||||
BitRate = Convert.ToInt32(audioStream.BitRate),
|
BitRate = Convert.ToInt32(audioStream.BitRate),
|
||||||
Codec = audioStream.CodecShortName,
|
Codec = audioStream.CodecShortName,
|
||||||
@ -132,7 +132,14 @@ namespace MediaBrowser.Server.Implementations.BdInfo
|
|||||||
SampleRate = audioStream.SampleRate,
|
SampleRate = audioStream.SampleRate,
|
||||||
Type = MediaStreamType.Audio,
|
Type = MediaStreamType.Audio,
|
||||||
Index = streams.Count
|
Index = streams.Count
|
||||||
});
|
};
|
||||||
|
|
||||||
|
if (audioStream.LFE > 0)
|
||||||
|
{
|
||||||
|
stream.Channels = audioStream.ChannelCount + 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
streams.Add(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user