Merge pull request #1808 from joshuaboniface/fix-amf-win

Change Win32 AMF flag to d3d11va
This commit is contained in:
Joshua M. Boniface 2019-09-29 17:19:23 -04:00 committed by GitHub
commit dcc8c7b92a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2545,7 +2545,10 @@ namespace MediaBrowser.Controller.MediaEncoding
{
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
{
return "-hwaccel dxva2";
if(Environment.OSVersion.Version.Major > 6 || (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor > 1))
return "-hwaccel d3d11va";
else
return "-hwaccel dxva2";
}
switch (videoStream.Codec.ToLowerInvariant())