update as per suggestions

pull/2821/head
Nyanmisaka 4 years ago committed by GitHub
parent e6f65863e3
commit 62d9a48833
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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");

Loading…
Cancel
Save