aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOrry Verducci <orry@orryverducci.co.uk>2020-08-13 21:23:12 +0100
committerOrry Verducci <orry@orryverducci.co.uk>2020-08-13 21:23:12 +0100
commit9438a509760af4024822b1f9adf895fde491e585 (patch)
tree6c5437ad031dfd5fa92b4605cd916a8bf3ed7229
parentd7b0f68eab038609ac377476bdcbbb1e02069102 (diff)
Correct parentheses
-rw-r--r--MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
index 1c42adb03..84a6a461f 100644
--- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
+++ b/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;
// 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
if (isVaapiH264Encoder)
@@ -2150,7 +2150,9 @@ namespace MediaBrowser.Controller.MediaEncoding
|| state.DeInterlace("avc", true)
|| state.DeInterlace("h265", true)
|| state.DeInterlace("hevc", true))
- && (!isVaapiH264Encoder && !isQsvH264Encoder && !isNvdecH264Decoder))
+ && !isVaapiH264Encoder
+ && !isQsvH264Encoder
+ && !isNvdecH264Decoder)
{
if (string.Equals(options.DeinterlaceMethod, "bwdif", StringComparison.OrdinalIgnoreCase))
{