소스 검색

Merge pull request #9263 from TelepathicWalrus/transcoded-audio-fix

Fixes https://github.com/jellyfin/jellyfin/issues/9251
Bond-009 2 년 전
부모
커밋
c76bcd5ec7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      MediaBrowser.Model/Dlna/StreamBuilder.cs

+ 2 - 2
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;