jellyfin/MediaBrowser.Model/Dlna
gnattu 162ea38a95
Check MaxAudioChannels for directAudioStream candidates (#12319)
* Check MaxAudioChannels for directAudioStream candidates

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.

Signed-off-by: gnattu <gnattuoc@me.com>

* Fix unit test

Signed-off-by: gnattu <gnattuoc@me.com>

* Set correct transcode reason and target channels for unit test

Signed-off-by: gnattu <gnattuoc@me.com>

* Match old stream selection behavior

Signed-off-by: gnattu <gnattuoc@me.com>

* Fix reason matching

Signed-off-by: gnattu <gnattuoc@me.com>

---------

Signed-off-by: gnattu <gnattuoc@me.com>
2024-07-29 00:11:59 +02:00
..
CodecProfile.cs Use our own Contains extension 2021-12-20 13:31:07 +01:00
CodecType.cs Fix some warnings 2020-02-23 12:11:43 +01:00
ConditionProcessor.cs Migrate VideoRange and VideoRangeType to Enum 2023-06-28 12:02:20 +02:00
ContainerProfile.cs Enable nullable for more files 2023-03-07 21:51:48 +01:00
DeviceProfile.cs Remove DLNA-specific DeviceProfile code (#10850) 2024-01-12 09:24:32 -07:00
DirectPlayProfile.cs Enable nullable for more files 2023-03-07 21:51:48 +01:00
DlnaProfileType.cs Store lyrics in the database as media streams (#9951) 2024-02-26 05:09:40 -07:00
EncodingContext.cs Fix some warnings 2020-02-23 12:11:43 +01:00
ITranscoderSupport.cs Enable nullable for more files 2023-03-07 21:51:48 +01:00
MediaOptions.cs Update stylecop.analyzers to v1.2.0-beta.507 2023-06-22 00:39:32 +02:00
PlaybackErrorCode.cs Fix some warnings 2020-02-23 12:11:43 +01:00
ProfileCondition.cs fix SA1508 2020-06-15 10:45:55 +12:00
ProfileConditionType.cs Fix some warnings 2020-02-23 12:11:43 +01:00
ProfileConditionValue.cs Merge pull request #7947 from nyanmisaka/video-range-condition 2022-06-29 01:26:14 -04:00
ResolutionConfiguration.cs Enable TreatWarningsAsErrors for MediaBrowser.Model 2021-02-20 23:29:33 +01:00
ResolutionNormalizer.cs Remove unused lines 2023-06-20 03:50:02 +08:00
ResolutionOptions.cs Enable nullabe reference types for MediaBrowser.Model 2020-04-05 18:10:56 +02:00
StreamBuilder.cs Check MaxAudioChannels for directAudioStream candidates (#12319) 2024-07-29 00:11:59 +02:00
StreamInfo.cs Add EnableAudioVbrEncoding to TranscodingProfile 2024-07-17 21:27:35 +08:00
SubtitleDeliveryMethod.cs - add an option for dropping specific subtitle formats using the DLNA SubtitleProfile 2021-12-09 17:52:51 +02:00
SubtitleProfile.cs Use our own Contains extension 2021-12-20 13:31:07 +01:00
SubtitleStreamInfo.cs Enable nullabe reference types for MediaBrowser.Model 2020-04-05 18:10:56 +02:00
TranscodeSeekInfo.cs Fix some warnings 2020-02-23 12:11:43 +01:00
TranscodingProfile.cs Default EnableAudioVbrEncoding to true in TranscodingProfile 2024-07-17 21:27:35 +08:00