Fix warnings on OSX compile
This commit is contained in:
parent
e83ba4bdde
commit
41d1c31f7f
@ -114,7 +114,7 @@ class CD3D9ExUtils {
|
||||
};
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
enum {
|
||||
OS_UNSUPPORTED = 0,
|
||||
OS_XP,
|
||||
OS_VISTA_UPPER
|
||||
|
@ -225,7 +225,7 @@ void_t H264DecodeInstance (ISVCDecoder* pDecoder, const char* kpH264FileName, co
|
||||
}
|
||||
iEnd = WelsTime();
|
||||
iTotal += iEnd - iStart;
|
||||
if ((sDstBufInfo.iBufferStatus == 1)) {
|
||||
if (sDstBufInfo.iBufferStatus == 1) {
|
||||
iFrameNum++;
|
||||
cOutputModule.Process ((void_t**)pDst, &sDstBufInfo, pYuvFile);
|
||||
if (sDstBufInfo.eBufferProperty == BUFFER_HOST) {
|
||||
@ -265,7 +265,7 @@ void_t H264DecodeInstance (ISVCDecoder* pDecoder, const char* kpH264FileName, co
|
||||
pDst[2] = (uint8_t*)pData[2];
|
||||
}
|
||||
|
||||
if ((sDstBufInfo.iBufferStatus == 1)) {
|
||||
if (sDstBufInfo.iBufferStatus == 1) {
|
||||
cOutputModule.Process ((void_t**)pDst, &sDstBufInfo, pYuvFile);
|
||||
if (sDstBufInfo.eBufferProperty == BUFFER_HOST) {
|
||||
iWidth = sDstBufInfo.UsrData.sSystemBuffer.iWidth;
|
||||
|
@ -970,7 +970,7 @@ int ProcessEncodingSvcWithParam (ISVCEncoder* pPtrEnc, int argc, char** argv) {
|
||||
long iEncode = pPtrEnc->EncodeFrame (pPlanes[0], &sFbi);
|
||||
iTotal += WelsTime() - iStart;
|
||||
if (videoFrameTypeInvalid == iEncode) {
|
||||
fprintf (stderr, "EncodeFrame() failed: %d.\n", iEncode);
|
||||
fprintf (stderr, "EncodeFrame() failed: %ld.\n", iEncode);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -77,7 +77,7 @@ virtual long Uninitialize();
|
||||
* pDstInfo SBufferInfo& information provided to API including width, height, SW/HW option, etc
|
||||
*
|
||||
* return: if decode frame success return 0, otherwise corresponding error returned.
|
||||
/***************************************************************************/
|
||||
***************************************************************************/
|
||||
virtual DECODING_STATE DecodeFrame (const unsigned char* kpSrc,
|
||||
const int kiSrcLen,
|
||||
unsigned char** ppDst,
|
||||
|
@ -82,7 +82,7 @@ namespace WelsDec {
|
||||
* Input parameters: none
|
||||
*
|
||||
* return: none
|
||||
/***************************************************************************/
|
||||
***************************************************************************/
|
||||
CWelsDecoder::CWelsDecoder (void_t)
|
||||
: m_pDecContext (NULL),
|
||||
m_pTrace (NULL) {
|
||||
@ -146,7 +146,7 @@ CWelsDecoder::CWelsDecoder (void_t)
|
||||
* Input parameters: none
|
||||
*
|
||||
* return: none
|
||||
/***************************************************************************/
|
||||
***************************************************************************/
|
||||
CWelsDecoder::~CWelsDecoder() {
|
||||
IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::~CWelsDecoder()");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user