Skip to content

Commit

Permalink
Merge pull request cisco#1703 from mstorsjo/add-cast
Browse files Browse the repository at this point in the history
Add a cast to silence GCC warnings about comparison between signed and unsigned
  • Loading branch information
ethanhugg committed Jan 7, 2015
2 parents 62c6a1e + 5c3c2a5 commit 178a18b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codec/decoder/core/src/decoder_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ int32_t ConstructAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferI
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;
Expand Down

0 comments on commit 178a18b

Please sign in to comment.