瀏覽代碼

Correct parentheses

Orry Verducci 4 年之前
父節點
當前提交
9438a50976
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

+ 4 - 2
MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

@@ -2089,7 +2089,7 @@ namespace MediaBrowser.Controller.MediaEncoding
             var hasGraphicalSubs = state.SubtitleStream != null && !state.SubtitleStream.IsTextSubtitleStream && state.SubtitleDeliveryMethod == SubtitleDeliveryMethod.Encode;
             var hasGraphicalSubs = state.SubtitleStream != null && !state.SubtitleStream.IsTextSubtitleStream && state.SubtitleDeliveryMethod == SubtitleDeliveryMethod.Encode;
 
 
             // If double rate deinterlacing is enabled and the input framerate is 30fps or below, otherwise the output framerate will be too high for many devices
             // If double rate deinterlacing is enabled and the input framerate is 30fps or below, otherwise the output framerate will be too high for many devices
-            var doubleRateDeinterlace = (options.DeinterlaceDoubleRate && (videoStream?.RealFrameRate ?? 60) <= 30);
+            var doubleRateDeinterlace = options.DeinterlaceDoubleRate && (videoStream?.RealFrameRate ?? 60) <= 30;
 
 
             // When the input may or may not be hardware VAAPI decodable
             // When the input may or may not be hardware VAAPI decodable
             if (isVaapiH264Encoder)
             if (isVaapiH264Encoder)
@@ -2150,7 +2150,9 @@ namespace MediaBrowser.Controller.MediaEncoding
                 || state.DeInterlace("avc", true)
                 || state.DeInterlace("avc", true)
                 || state.DeInterlace("h265", true)
                 || state.DeInterlace("h265", true)
                 || state.DeInterlace("hevc", true))
                 || state.DeInterlace("hevc", true))
-                && (!isVaapiH264Encoder && !isQsvH264Encoder && !isNvdecH264Decoder))
+                && !isVaapiH264Encoder
+                && !isQsvH264Encoder
+                && !isNvdecH264Decoder)
             {
             {
                 if (string.Equals(options.DeinterlaceMethod, "bwdif", StringComparison.OrdinalIgnoreCase))
                 if (string.Equals(options.DeinterlaceMethod, "bwdif", StringComparison.OrdinalIgnoreCase))
                 {
                 {