diff options
| author | Bill Thornton <thornbill@users.noreply.github.com> | 2020-12-01 13:39:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-01 13:39:29 -0500 |
| commit | 1bb4b590a7aefa847b37b3b0b68da195b00060c1 (patch) | |
| tree | ff7604c0797f39233a7a26932c7dcbd76e65b099 | |
| parent | afd20f69d974540559846aa0a8ef7b9c48b9c75f (diff) | |
| parent | 6536c81226d5348f587119aa46635b32cc7a807e (diff) | |
Merge pull request #4626 from nyanmisaka/audio-bitrate
Do not extract audio stream bitrate info for videos from formatInfo
| -rw-r--r-- | MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs index 27bd693e3..bd026bce1 100644 --- a/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs +++ b/MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs @@ -782,7 +782,7 @@ namespace MediaBrowser.MediaEncoding.Probing if (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 info if (int.TryParse(formatInfo.BitRate, NumberStyles.Any, _usCulture, out var value)) |
