mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Use case insensitive contains (4)
Co-Authored-By: Bond-009 <bond.009@outlook.com>
This commit is contained in:
parent
d0febd6c37
commit
bafcadbe58
@ -1969,7 +1969,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
|
|
||||||
// If we are software decoding, and hardware encoding
|
// If we are software decoding, and hardware encoding
|
||||||
if (string.Equals(outputVideoCodec, "h264_qsv", StringComparison.OrdinalIgnoreCase)
|
if (string.Equals(outputVideoCodec, "h264_qsv", StringComparison.OrdinalIgnoreCase)
|
||||||
&& (string.IsNullOrEmpty(videoDecoder) || !videoDecoder.Contains("qsv")))
|
&& (string.IsNullOrEmpty(videoDecoder) || !videoDecoder.Contains("qsv", StringComparison.OrdinalIgnoreCase)))
|
||||||
{
|
{
|
||||||
filters.Add("format=nv12|qsv");
|
filters.Add("format=nv12|qsv");
|
||||||
filters.Add("hwupload=extra_hw_frames=64");
|
filters.Add("hwupload=extra_hw_frames=64");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user