Change Win32 AMF flag to d3d11va for Windows 8+

This commit is contained in:
Joshua Boniface 2019-09-28 21:30:08 -04:00
parent 3249fbb715
commit 7fd75bf071

View File

@ -2548,6 +2548,9 @@ namespace MediaBrowser.Controller.MediaEncoding
{
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
{
if(Environment.OSVersion.Version.Major > 6 || (Environment.OSVersion.Version.Major == 6 && Environment.OSVersion.Version.Minor > 1))
return "-hwaccel d3d11va";
else
return "-hwaccel dxva2";
}