Use OrdinalIgnoreCase comparison

Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
gnattu 2024-05-16 20:18:36 +08:00
parent 20a1da1855
commit 9b65d243a8

View File

@ -872,7 +872,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
}
float? encoderQuality = qualityScale;
if (vidEncoder.Contains("vaapi", StringComparison.InvariantCultureIgnoreCase))
if (vidEncoder.Contains("vaapi", StringComparison.OrdinalIgnoreCase))
{
// vaapi's mjpeg encoder uses jpeg quality divided by QP2LAMBDA (118) as input, instead of ffmpeg defined qscale
// ffmpeg qscale is a value from 1-31, with 1 being best quality and 31 being worst