History

refine level check

Licai Guo committed 12 years ago

Commit b7bee7a1 parent 6854e062 files · +5 −2Browse files

Showing the changes to codec/decoder/core/src/parse_mb_syn_cavlc.cpp (1 of 2 files). Show all

Unified · Split

codec/decoder/core/src/parse_mb_syn_cavlc.cpp+4−2
@@ -718,8 +718,10 @@ int32_t WelsResidualBlockCavlc (SVlcTable* pVlcTable, uint8_t* pNonZeroCountCach · 717 unmodified lines
718 if ((uiTrailingOnes > 3) || (uiTotalCoeff > 16)) { /////////////////check uiTrailingOnes and uiTotalCoeff718 if ((uiTrailingOnes > 3) || (uiTotalCoeff > 16)) { /////////////////check uiTrailingOnes and uiTotalCoeff
719 return ERR_INFO_CAVLC_INVALID_TOTAL_COEFF_OR_TRAILING_ONES;719 return ERR_INFO_CAVLC_INVALID_TOTAL_COEFF_OR_TRAILING_ONES;
720 }720 }
721 iUsedBits += CavlcGetLevelVal (iLevel, &sReadBitsCache, uiTotalCoeff, uiTrailingOnes);721 if ((i = CavlcGetLevelVal (iLevel, &sReadBitsCache, uiTotalCoeff, uiTrailingOnes)) == -1) {
722 722 return ERR_INFO_CAVLC_INVALID_LEVEL;
723 }
724 iUsedBits += i;
723 if (uiTotalCoeff < iMaxNumCoeff) {725 if (uiTotalCoeff < iMaxNumCoeff) {
724 iUsedBits += CavlcGetTotalZeros (iZerosLeft, &sReadBitsCache, uiTotalCoeff, pVlcTable, bChromaDc);726 iUsedBits += CavlcGetTotalZeros (iZerosLeft, &sReadBitsCache, uiTotalCoeff, pVlcTable, bChromaDc);
725 } else {727 } else {

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