shithub: openh264

Download patch

ref: f62492716fff8cabd79fb62e95c1554ccd94ec2c
parent: 7db269f04a159844d5a487cc2884f7de95325344
parent: 495a4a392e83ee38cc3012168f3188d6202cf0ba
author: volvet <[email protected]>
date: Fri Mar 7 19:27:47 EST 2014

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

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;