fix: Ensure to load latest version of ffmpeg libraries first (#3473)

Fix a possible crash related to older version of ffmpeg being loaded
instewad of the one shipped with the emulator.
This commit is contained in:
Mary-nyan 2022-07-24 11:39:56 +02:00 committed by Matt Heins
parent 5dcc90649b
commit f8ac5f6e59

View file

@ -45,7 +45,7 @@ namespace Ryujinx.Graphics.Nvdec.FFmpeg.Native
{
(int minVersion, int maxVersion) = value;
for (int version = minVersion; version <= maxVersion; version++)
for (int version = maxVersion; version >= minVersion; version--)
{
if (NativeLibrary.TryLoad(FormatLibraryNameForCurrentOs(libraryName, version), assembly, searchPath, out handle))
{