Explorar o código

fix issue with audio transcoding

dkanada %!s(int64=5) %!d(string=hai) anos
pai
achega
73d123fe36
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs

+ 1 - 1
MediaBrowser.Api/Playback/Hls/DynamicHlsService.cs

@@ -865,7 +865,7 @@ namespace MediaBrowser.Api.Playback.Hls
             {
                 framerate = Math.Round(state.TargetFramerate.GetValueOrDefault(), 3);
             }
-            else if (state.VideoStream.RealFrameRate.HasValue)
+            else if (state.VideoStream?.RealFrameRate != null)
             {
                 framerate = Math.Round(state.VideoStream.RealFrameRate.GetValueOrDefault(), 3);
             }