mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-24 19:16:32 +00:00
check for zero bitrate coming from bdinfo
This commit is contained in:
@@ -127,7 +127,6 @@ namespace MediaBrowser.Server.Implementations.BdInfo
|
||||
{
|
||||
var stream = new MediaStream
|
||||
{
|
||||
BitRate = Convert.ToInt32(audioStream.BitRate),
|
||||
Codec = audioStream.CodecShortName,
|
||||
Language = audioStream.LanguageCode,
|
||||
Channels = audioStream.ChannelCount,
|
||||
@@ -136,6 +135,13 @@ namespace MediaBrowser.Server.Implementations.BdInfo
|
||||
Index = streams.Count
|
||||
};
|
||||
|
||||
var bitrate = Convert.ToInt32(audioStream.BitRate);
|
||||
|
||||
if (bitrate > 0)
|
||||
{
|
||||
stream.BitRate = bitrate;
|
||||
}
|
||||
|
||||
if (audioStream.LFE > 0)
|
||||
{
|
||||
stream.Channels = audioStream.ChannelCount + 1;
|
||||
|
||||
Reference in New Issue
Block a user