mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-03 05:34:16 -04:00
Change Win32 AMF flag to d3d11va for Windows 8+
This commit is contained in:
parent
3249fbb715
commit
7fd75bf071
@ -2548,7 +2548,10 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
{
|
{
|
||||||
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
|
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())
|
switch (videoStream.Codec.ToLowerInvariant())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user