aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2023-02-05 21:02:25 +0100
committerGitHub <noreply@github.com>2023-02-05 21:02:25 +0100
commitc76bcd5ec7acb34d83305459d47f8c78d425ed51 (patch)
treecb8a71894778c1a764ef6e9f3c8fd6c8a493558e
parentabf6acf9d7c3d89cf16c94cc147e4fb6baf84fb9 (diff)
parent06b40980f45531cd57fb675e7e430f558fbb00b4 (diff)
Merge pull request #9263 from TelepathicWalrus/transcoded-audio-fix
Fixes https://github.com/jellyfin/jellyfin/issues/9251
-rw-r--r--MediaBrowser.Model/Dlna/StreamBuilder.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Model/Dlna/StreamBuilder.cs b/MediaBrowser.Model/Dlna/StreamBuilder.cs
index 62d67c025..eb6d60295 100644
--- a/MediaBrowser.Model/Dlna/StreamBuilder.cs
+++ b/MediaBrowser.Model/Dlna/StreamBuilder.cs
@@ -118,7 +118,7 @@ namespace MediaBrowser.Model.Dlna
var transcodeReasons = directPlayInfo.TranscodeReasons;
var inputAudioChannels = audioStream?.Channels;
- var inputAudioBitrate = audioStream?.BitDepth;
+ var inputAudioBitrate = audioStream?.BitRate;
var inputAudioSampleRate = audioStream?.SampleRate;
var inputAudioBitDepth = audioStream?.BitDepth;
@@ -143,7 +143,7 @@ namespace MediaBrowser.Model.Dlna
{
if (tcProfile.Type == playlistItem.MediaType
&& tcProfile.Context == options.Context
- && _transcoderSupport.CanEncodeToAudioCodec(transcodingProfile.AudioCodec ?? tcProfile.Container))
+ && _transcoderSupport.CanEncodeToAudioCodec(tcProfile.AudioCodec ?? tcProfile.Container))
{
transcodingProfile = tcProfile;
break;