Remove the shift exponent too large warning

This commit is contained in:
Haibo Zhu 2015-10-16 01:13:23 -07:00
parent af6a9a838f
commit f1d92ef363
2 changed files with 5 additions and 1 deletions

View File

@ -195,6 +195,7 @@ ERR_INFO_INVALID_MMCO_REF_NUM_NOT_ENOUGH,
ERR_INFO_INVALID_MMCO_LONG_TERM_IDX_EXCEED_MAX,
//for CABAC
ERR_CABAC_NO_BS_TO_READ,
ERR_CABAC_UNEXPECTED_VALUE,
//for scaling list
ERR_SCALING_LIST_DELTA_SCALE,
};

View File

@ -273,7 +273,10 @@ int32_t DecodeExpBypassCabac (PWelsCabacDecEngine pDecEngine, int32_t iCount, ui
iSymTmp += (1 << iCount);
++iCount;
}
} while (uiCode != 0);
} while (uiCode != 0 && iCount != 31);
if (iCount == 31) {
return ERR_CABAC_UNEXPECTED_VALUE;
}
while (iCount--) {
WELS_READ_VERIFY (DecodeBypassCabac (pDecEngine, uiCode));