History

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

Martin Storsjö committed 11 years ago

Commit 5c3c2a51 parent 68ff8461 file · +1 −1Browse files

Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/core/src/decoder_core.cpp+1−1
@@ -1762,7 +1762,7 @@ int32_t ConstructAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferI · 1761 unmodified lines
17621762 iErr = DecodeCurrentAccessUnit (pCtx, ppDst, pDstInfo);
17631763
17641764 if (pCtx->bParseOnly) {
1765− if ((dsErrorFree == pCtx->iErrorCode) && (pCtx->iTotalNumMbRec == pCtx->pSps->iMbHeight * pCtx->pSps->iMbWidth)) {
1765+ if ((dsErrorFree == pCtx->iErrorCode) && ((uint32_t) pCtx->iTotalNumMbRec == pCtx->pSps->iMbHeight * pCtx->pSps->iMbWidth)) {
17661766 SParserBsInfo* pParser = pCtx->pParserBsInfo;
17671767 uint8_t* pDstBuf = pParser->pDstBuff;
17681768 SNalUnit* pCurNal = NULL;

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