Merge pull request #449 from mstorsjo/avoid-opaque-pointer

Make ParamValidationExt use the actual type instead of a void pointer
This commit is contained in:
volvet 2014-03-08 00:27:47 +08:00
commit f62492716f
2 changed files with 2 additions and 3 deletions

View File

@ -64,7 +64,7 @@ int32_t InitPic (const void* kpSrc, const int32_t kiCsp, const int32_t kiWidth,
* \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);

View File

@ -131,8 +131,7 @@ int32_t ParamValidation (SWelsSvcCodingParam* pCfg) {
return 0;
}
int32_t ParamValidationExt (void* pParam) {
SWelsSvcCodingParam* pCodingParam = (SWelsSvcCodingParam*)pParam;
int32_t ParamValidationExt (SWelsSvcCodingParam* pCodingParam) {
int8_t i = 0;
int32_t iIdx = 0;