add parenthses
This commit is contained in:
parent
1a04694d97
commit
56767f8154
@ -403,7 +403,7 @@ int32_t WelsDecodeSlice (PWelsDecoderContext pCtx, bool_t bFirstSliceInLayer, PN
|
||||
|
||||
iNextMbXyIndex = pSliceHeader->iFirstMbInSlice;
|
||||
|
||||
if (iNextMbXyIndex < 0 || iNextMbXyIndex >= kiCountNumMb) {
|
||||
if ((iNextMbXyIndex < 0) || (iNextMbXyIndex >= kiCountNumMb)) {
|
||||
WelsLog (pCtx, WELS_LOG_ERROR,
|
||||
"WelsDecodeSlice()::iFirstMbInSlice(%d) > pSps->kiTotalMb(%d). ERROR!!! resolution change....\n",
|
||||
iNextMbXyIndex, kiCountNumMb);
|
||||
|
@ -690,7 +690,7 @@ int32_t SyncPictureResolutionExt (PWelsDecoderContext pCtx, const int32_t kiMbWi
|
||||
*/
|
||||
void_t UpdateMaxPictureResolution (PWelsDecoderContext pCtx, const int32_t kiCurWidth, const int32_t kiCurHeight) {
|
||||
//any dimension larger than that of current dimension, should modify the max-dimension
|
||||
if (kiCurWidth * kiCurHeight > pCtx->iMaxWidthInSps * pCtx->iMaxHeightInSps) {
|
||||
if ((kiCurWidth * kiCurHeight) > (pCtx->iMaxWidthInSps * pCtx->iMaxHeightInSps)) {
|
||||
pCtx->iMaxWidthInSps = kiCurWidth;
|
||||
pCtx->iMaxHeightInSps = kiCurHeight;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user