mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #12319] [MERGED] Check MaxAudioChannels for directAudioStream candidates #13142
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/12319
Author: @gnattu
Created: 7/22/2024
Status: ✅ Merged
Merged: 7/29/2024
Merged by: @Bond-009
Base:
master← Head:check-channel-directaudio📝 Commits (5)
42e09adCheck MaxAudioChannels for directAudioStream candidates5ef54a4Fix unit test9311165Set correct transcode reason and target channels for unit test1bca5a7Match old stream selection behavior94a706dFix reason matching📊 Changes
2 files changed (+25 additions, -7 deletions)
View changed files
📝
MediaBrowser.Model/Dlna/StreamBuilder.cs(+13 -2)📝
tests/Jellyfin.Model.Tests/Dlna/StreamBuilderTests.cs(+12 -5)📄 Description
The current stream builder logic does not check the channel limit when determining if the audio stream can be directly used, and this can cause some undesired effects:
A high channel count surround sound stream might be picked even if a stereo one exists when the user requires stereo audio.
The user's preferred audio codec might not be respected during the downmix because the requested codec is now forced to be the same as the original source.
Changes
Issues
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.