History

Add a public function for getting the codec version

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.

Martin Storsjö committed 11 years ago

Commit 8bfeae21 parent 4fb442a4 files · +13 −1Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 4 files). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+5−0
@@ -40,6 +40,7 @@ · 39 unmodified lines
4040 #include "version.h"
4141 #include "crt_util_safe_x.h" // Safe CRT routines like util for cross platforms
4242 #include "ref_list_mgr_svc.h"
43+#include "codec_ver.h"
4344
4445 #include <time.h>
4546 #include <measure_time.h>
@@ -1258,4 +1259,8 @@ void WelsDestroySVCEncoder (ISVCEncoder* pEncoder) { · 1212 unmodified lines
12581259 pSVCEncoder = NULL;
12591260 }
12601261 }
1262+
1263+OpenH264Version WelsGetCodecVersion () {
1264+ return g_stCodecVersion;
1265+}
12611266 //////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t