ref: 495a4a392e83ee38cc3012168f3188d6202cf0ba
parent: 94a0eaf1e77fa80b5aa2c10f46ef10d86af758e4
author: Martin Storsjö <[email protected]>
date: Fri Mar 7 09:16:31 EST 2014
Make ParamValidationExt use the actual type instead of a void pointer
--- a/codec/encoder/core/inc/extern.h
+++ b/codec/encoder/core/inc/extern.h
@@ -64,7 +64,7 @@
* \pParam pParam SWelsSvcCodingParam*
* \return successful - 0; otherwise none 0 for failed
*/
-int32_t ParamValidationExt (void* pParam);
+int32_t ParamValidationExt (SWelsSvcCodingParam* pParam);
// GOM based RC related for uiSliceNum decision
void GomValidCheck (const int32_t kiMbWidth, const int32_t kiMbHeight, int32_t* pSliceNum);
--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -131,8 +131,7 @@
return 0;
}
-int32_t ParamValidationExt (void* pParam) {
- SWelsSvcCodingParam* pCodingParam = (SWelsSvcCodingParam*)pParam;
+int32_t ParamValidationExt (SWelsSvcCodingParam* pCodingParam) {
int8_t i = 0;
int32_t iIdx = 0;