Call it in static constructor

This commit is contained in:
Ac_K 2021-05-20 01:17:14 +02:00
parent a2c57de204
commit a644055a4d

View file

@ -16,8 +16,6 @@ namespace Ryujinx.Graphics.Nvdec.H264
public FFmpegContext()
{
SetRootPath();
_logFunc = Log;
// Redirect log output
@ -32,7 +30,12 @@ namespace Ryujinx.Graphics.Nvdec.H264
_packet = ffmpeg.av_packet_alloc();
}
private void SetRootPath()
static FFmpegContext()
{
SetRootPath();
}
private static void SetRootPath()
{
if (OperatingSystem.IsLinux())
{