ref: 41d1c31f7f06b53563395996985608fd448db8ac
parent: e83ba4bddee349a1f18ed9ef668637bc61548841
author: Cullen Jennings <fluffy@iii.ca>
date: Fri Dec 13 08:03:38 EST 2013
Fix warnings on OSX compile
--- a/codec/console/dec/inc/d3d9_utils.h
+++ b/codec/console/dec/inc/d3d9_utils.h
@@ -114,7 +114,7 @@
};
#endif
-typedef enum {
+enum {
OS_UNSUPPORTED = 0,
OS_XP,
OS_VISTA_UPPER
--- a/codec/console/dec/src/h264dec.cpp
+++ b/codec/console/dec/src/h264dec.cpp
@@ -225,7 +225,7 @@
}
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 @@
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;
--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -970,7 +970,7 @@
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;
}
--- a/codec/decoder/plus/inc/welsDecoderExt.h
+++ b/codec/decoder/plus/inc/welsDecoderExt.h
@@ -77,7 +77,7 @@
* 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,
--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -82,7 +82,7 @@
* Input parameters: none
*
* return: none
-/***************************************************************************/
+***************************************************************************/
CWelsDecoder::CWelsDecoder (void_t)
: m_pDecContext (NULL),
m_pTrace (NULL) {
@@ -146,7 +146,7 @@
* Input parameters: none
*
* return: none
-/***************************************************************************/
+***************************************************************************/
CWelsDecoder::~CWelsDecoder() {
IWelsTrace::WelsVTrace (m_pTrace, IWelsTrace::WELS_LOG_INFO, "CWelsDecoder::~CWelsDecoder()");