From c32f88a866efa95d12e04eb8e497ce0f81f9a63e Mon Sep 17 00:00:00 2001 From: akallabeth Date: Thu, 30 Jan 2025 11:14:00 +0100 Subject: [PATCH] [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) --- libfreerdp/codec/h264_openh264.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libfreerdp/codec/h264_openh264.c b/libfreerdp/codec/h264_openh264.c index ae32f0bf2..d17e9be6b 100644 --- a/libfreerdp/codec/h264_openh264.c +++ b/libfreerdp/codec/h264_openh264.c @@ -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