diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2023-03-17 11:49:07 +0100 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2023-03-17 11:49:07 +0100 |
| commit | 3f6a23d7d094ddd36b01d9b565ce7b3ecce9c0ee (patch) | |
| tree | c0780c6ce7de8ffd314b8f63d4fbb2585673ac6d | |
| parent | ee4ffd64e132fce99cb6c297453623729e20bad4 (diff) | |
Fix condition in CanStreamCopyAudio
| -rw-r--r-- | MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs index 562b5d022..bf73321ab 100644 --- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs +++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs @@ -2023,9 +2023,9 @@ namespace MediaBrowser.Controller.MediaEncoding } } - // Video bitrate must fall within requested value + // Audio bitrate must fall within requested value if (request.AudioBitRate.HasValue - && audioStream.BitDepth.HasValue + && audioStream.BitRate.HasValue && audioStream.BitRate.Value > request.AudioBitRate.Value) { return false; |
