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.
Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 4 files). Show all
Unified · Split
| @@ -1231,4 +1231,8 @@ OpenH264Version WelsGetCodecVersion() { · 1230 unmodified lines | |||
| 1231 | (void) g_strCodecVer; // Avoid warnings about unused static variables | 1231 | (void) g_strCodecVer; // Avoid warnings about unused static variables |
| 1232 | return g_stCodecVersion; | 1232 | return g_stCodecVersion; |
| 1233 | } | 1233 | } |
| 1234 | |||
| 1235 | void WelsGetCodecVersionEx (OpenH264Version* pVersion) { | ||
| 1236 | *pVersion = g_stCodecVersion; | ||
| 1237 | } | ||
| 1234 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | 1238 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |