History

Add a new public function WelsGetCodecVersionEx

This function doesn't return a struct, but fills in a struct via a provided pointer. The ABI of returning a struct is different between MSVC and mingw. This allows using the same function from mingw, even though the DLL has been built with MSVC.

Martin Storsjö committed 11 years ago

Commit 50dc4751 parent 47d8a844 files · +12 −0Browse 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+4−0
@@ -1231,4 +1231,8 @@ OpenH264Version WelsGetCodecVersion() { · 1230 unmodified lines
1231 (void) g_strCodecVer; // Avoid warnings about unused static variables1231 (void) g_strCodecVer; // Avoid warnings about unused static variables
1232 return g_stCodecVersion;1232 return g_stCodecVersion;
1233}1233}
1234
1235void WelsGetCodecVersionEx (OpenH264Version* pVersion) {
1236 *pVersion = g_stCodecVersion;
1237}
1234//////////////////////////////////////////////////////////////////////////////////////////////////////////////////1238//////////////////////////////////////////////////////////////////////////////////////////////////////////////////

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