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
40#include "version.h"40#include "version.h"
41#include "crt_util_safe_x.h" // Safe CRT routines like util for cross platforms41#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
1263OpenH264Version WelsGetCodecVersion () {
1264 return g_stCodecVersion;
1265}
1261//////////////////////////////////////////////////////////////////////////////////////////////////////////////////1266//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

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