Fix warnings on OSX compile

This commit is contained in:
Cullen Jennings 2013-12-13 13:03:38 -07:00
parent e83ba4bdde
commit 41d1c31f7f
5 changed files with 7 additions and 7 deletions

View File

@ -114,7 +114,7 @@ class CD3D9ExUtils {
};
#endif
typedef enum {
enum {
OS_UNSUPPORTED = 0,
OS_XP,
OS_VISTA_UPPER

View File

@ -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;

View File

@ -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;
}

View File

@ -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,

View File

@ -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()");