The Free Software Media System - Server Backend & API
do not extract audio stream bitrate info for videos from formatInfo
nyanmisaka6536c81226d5
diff --git a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.csindex 27bd693e33..bd026bce15 100644--- a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs+++ b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs@@ -782,7 +782,7 @@ namespace MediaBrowser.MediaEncoding.Probingif (bitrate == 0&& formatInfo != null&& !string.IsNullOrEmpty(formatInfo.BitRate)- && (stream.Type == MediaStreamType.Video || stream.Type == MediaStreamType.Audio))+ && (stream.Type == MediaStreamType.Video || (isAudio && stream.Type == MediaStreamType.Audio))){// If the stream info doesn't have a bitrate get the value from the media format infoif (int.TryParse(formatInfo.BitRate, NumberStyles.Any, _usCulture, out var value))