If the codec library is loaded dynamically, it may be necessary that the loaded library actually matches the version that was used when it was built, to avoid issues due to ABI differences. Therefore add a public function to allow getting the version of the currently loaded library.
Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 4 files). Show all
Unified · Split
| @@ -40,6 +40,7 @@ · 39 unmodified lines | |||
| 40 | #include "version.h" | 40 | #include "version.h" |
| 41 | #include "crt_util_safe_x.h" // Safe CRT routines like util for cross platforms | 41 | #include "crt_util_safe_x.h" // Safe CRT routines like util for cross platforms |
| 42 | #include "ref_list_mgr_svc.h" | 42 | #include "ref_list_mgr_svc.h" |
| 43 | #include "codec_ver.h" | ||
| 43 | 44 | ||
| 44 | #include <time.h> | 45 | #include <time.h> |
| 45 | #include <measure_time.h> | 46 | #include <measure_time.h> |
| @@ -1258,4 +1259,8 @@ void WelsDestroySVCEncoder (ISVCEncoder* pEncoder) { · 1212 unmodified lines | |||
| 1258 | pSVCEncoder = NULL; | 1259 | pSVCEncoder = NULL; |
| 1259 | } | 1260 | } |
| 1260 | } | 1261 | } |
| 1262 | |||
| 1263 | OpenH264Version WelsGetCodecVersion () { | ||
| 1264 | return g_stCodecVersion; | ||
| 1265 | } | ||
| 1261 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | 1266 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |