update as per suggestions

This commit is contained in:
Nyanmisaka 2020-04-12 17:34:25 +08:00 committed by GitHub
parent e6f65863e3
commit 62d9a48833
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2004,7 +2004,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|| videoStream.Profile.Contains("High 10", StringComparison.OrdinalIgnoreCase));
// Assert 10-bit hardware VAAPI decodable
if (IsColorDepth10 && (string.Equals(codec, "hevc", StringComparison.OrdinalIgnoreCase)
if (isColorDepth10 && (string.Equals(codec, "hevc", StringComparison.OrdinalIgnoreCase)
|| string.Equals(codec, "h265", StringComparison.OrdinalIgnoreCase)
|| string.Equals(codec, "vp9", StringComparison.OrdinalIgnoreCase)))
{
@ -2018,7 +2018,7 @@ namespace MediaBrowser.Controller.MediaEncoding
}
// Assert 8-bit hardware VAAPI decodable
else if (!IsColorDepth10)
else if (!isColorDepth10)
{
filters.Add("hwdownload");
filters.Add("format=nv12");