History

Fixed warnings found by clang. Removed some trailing whitespace.

Ethan Hugg committed 12 years ago

Commit bcf102d1 parent 616dc872 files · +10 −10Browse files

Unified · Split

2 files
  1. codec/encoder/core/src/encoder_ext.cpp +7 −7
  2. codec/encoder/core/src/utils.cpp +3 −3
codec/encoder/core/src/encoder_ext.cpp+7−7
@@ -1772,7 +1772,7 @@ void FreeMemorySvc (sWelsEncCtx** ppCtx) { · 1771 unmodified lines
17721772
17731773 #if defined(MEMORY_MONITOR)
17741774 assert (pMa->WelsGetMemoryUsage() == 0); // ensure all memory free well
1775−#endif//MEMORY_MONITOR
1775+#endif//MEMORY_MONITOR
17761776
17771777 if ((*ppCtx)->pMemAlign != NULL) {
17781778 WelsLog (NULL, WELS_LOG_INFO, "FreeMemorySvc(), verify memory usage (%d bytes) after free..\n",
@@ -2030,7 +2030,7 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 251 unmodified lines
20302030
20312031 uiCpuCores = pCodingParam->iMultipleThreadIdc; // assigned uiCpuCores from iMultipleThreadIdc from SGE testing
20322032
2033−#endif//WELS_TESTBED
2033+#endif//WELS_TESTBED
20342034
20352035 uiCpuCores = WELS_CLIP3 (uiCpuCores, 1, MAX_THREADS_NUM);
20362036
@@ -2123,9 +2123,9 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 86 unmodified lines
21232123 }
21242124
21252125 #if defined(MEMORY_MONITOR)
2126− WelsLog (pCtx, WELS_LOG_INFO, "WelsInitEncoderExt() exit, overall memory usage: %lu bytes\n",
2127− sizeof (sWelsEncCtx) /* requested size from malloc() or new operator */
2128− + pCtx->pMemAlign->WelsGetMemoryUsage() /* requested size from CMemoryAlign::WelsMalloc() */
2126+ WelsLog (pCtx, WELS_LOG_INFO, "WelsInitEncoderExt() exit, overall memory usage: %u bytes\n",
2127+ (unsigned int) (sizeof (sWelsEncCtx) /* requested size from malloc() or new operator */
2128+ + pCtx->pMemAlign->WelsGetMemoryUsage()) /* requested size from CMemoryAlign::WelsMalloc() */
21292129 );
21302130 #endif//MEMORY_MONITOR
21312131
@@ -3522,7 +3522,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, void* pDst, const SSourcePictur · 1390 unmodified lines
35223522 (pCtx->eSliceType == P_SLICE ? 'P' : 'I'),
35233523 eNalRefIdc,
35243524 iSliceSize);
3525−#endif//SLICE_INFO_OUTPUT
3525+#endif//SLICE_INFO_OUTPUT
35263526 ++ iNalIdxInLayer;
35273527 ++ iSliceIdx;
35283528 }
@@ -3758,7 +3758,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, void* pDst, const SSourcePictur · 229 unmodified lines
37583758
37593759 #if defined(X86_ASM)
37603760 WelsEmms();
3761−#endif //X86_ASM
3761+#endif //X86_ASM
37623762
37633763 return eFrameType;
37643764 }
codec/encoder/core/src/utils.cpp+3−3
@@ -157,7 +157,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 156 unmodified lines
157157 #endif//_MSC_VER
158158 #else//__GNUC__
159159 struct tm* t_now;
160−#endif//WIN32
160+#endif//WIN32
161161
162162 #if defined( WIN32 )
163163 struct _timeb tb;
@@ -172,7 +172,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 8 unmodified lines
172172 return;
173173 }
174174 #endif//_MSC_VER >= 1500
175−#endif//_MSC_VER
175+#endif//_MSC_VER
176176 FTIME (&tb);
177177 #elif defined( __GNUC__ )
178178 struct timeval tv;
@@ -252,7 +252,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 73 unmodified lines
252252 #endif//_MSC_VER >= 1500
253253 #endif//_MSC_VER
254254 #elif defined (__GNUC__)
255− iCurUsed = SNPRINTF (&pBuf[iBufUsed], iBufLeft, ".%3.3u]: ", tv.tv_usec / 1000); // confirmed_safe_unsafe_usage
255+ iCurUsed = SNPRINTF (&pBuf[iBufUsed], iBufLeft, ".%3.3u]: ", (unsigned int) (tv.tv_usec / 1000)); // confirmed_safe_unsafe_usage
256256 #endif//WIN32
257257 if (iCurUsed >= 0) {
258258 iBufUsed += iCurUsed;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t