[codec,openh264] fix library names for openh264

* prefer the full name of a version (e.g. libopenh264.so.2.5.0)
* fall back to the API version name (e.g. libopenh264.so.7)
* at last try the development name (e.g. libopenh264.so)
This commit is contained in:
akallabeth
2025-01-30 11:14:00 +01:00
parent ceafd94aef
commit c32f88a866

View File

@@ -65,7 +65,9 @@ static const char* openh264_library_names[] = {
#elif defined(__APPLE__)
"libopenh264.dylib"
#else
"libopenh264.so"
"libopenh264.so.7", "libopenh264.so.2.5.0", "libopenh264.so.2.4.1", "libopenh264.so.2.4.0",
"libopenh264.so.2.3.1", "libopenh264.so.2.3.0", "libopenh264.so",
#endif
};
#endif