aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNyanmisaka <nst799610810@gmail.com>2021-08-04 16:25:17 +0800
committerGitHub <noreply@github.com>2021-08-04 16:25:17 +0800
commitd4f09c6c9b142081064c4008bc1e84fb17c81ad8 (patch)
tree60c6c1dd43ded2f2dcc5396566aaef41b153ffa9
parent19e3c38fa8766e1dccb21d80224ae87cecf42df4 (diff)
Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
-rw-r--r--MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
index 249c6f46e..3f90de318 100644
--- a/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
+++ b/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
@@ -3575,7 +3575,7 @@ namespace MediaBrowser.Controller.MediaEncoding
&& IsVppTonemappingSupported(state, encodingOptions))
{
var outputVideoCodec = GetVideoEncoder(state, encodingOptions) ?? string.Empty;
- var isQsvEncoder = outputVideoCodec.IndexOf("qsv", StringComparison.OrdinalIgnoreCase) != -1;
+ var isQsvEncoder = outputVideoCodec.Contains("qsv", StringComparison.OrdinalIgnoreCase);
if (isQsvEncoder)
{
// Since tonemap_vaapi only support HEVC for now, no need to check the codec again.