mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
parent
19e3c38fa8
commit
d4f09c6c9b
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user