shithub: openh264

Download patch

ref: 178a18b30e1bfc5754e8e01a652f75e18029caf0
parent: 62c6a1e099294467132fbaef428bee24971ac683
parent: 5c3c2a569cdaf90303c15e2b3abcb8ac4b635bc2
author: Ethan Hugg <[email protected]>
date: Wed Jan 7 04:05:42 EST 2015

Merge pull request #1703 from mstorsjo/add-cast

Add a cast to silence GCC warnings about comparison between signed and unsigned

--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -1762,7 +1762,7 @@
   iErr = DecodeCurrentAccessUnit (pCtx, ppDst, pDstInfo);
 
   if (pCtx->bParseOnly) {
-    if ((dsErrorFree == pCtx->iErrorCode) && (pCtx->iTotalNumMbRec == pCtx->pSps->iMbHeight * pCtx->pSps->iMbWidth)) {
+    if ((dsErrorFree == pCtx->iErrorCode) && ((uint32_t) pCtx->iTotalNumMbRec == pCtx->pSps->iMbHeight * pCtx->pSps->iMbWidth)) {
       SParserBsInfo* pParser = pCtx->pParserBsInfo;
       uint8_t* pDstBuf = pParser->pDstBuff;
       SNalUnit* pCurNal = NULL;