History

refine level check

Licai Guo committed 12 years ago

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

Showing the changes to codec/decoder (2 of 2 files). Show all

Unified · Split

2 files
  1. codec/decoder/core/inc/error_code.h +1 −0
  2. codec/decoder/core/src/parse_mb_syn_cavlc.cpp +4 −2
codec/decoder/core/inc/error_code.h+1−0
@@ -133,6 +133,7 @@ enum { · 132 unmodified lines
133 ERR_INFO_INVALID_CBP,133 ERR_INFO_INVALID_CBP,
134 ERR_INFO_DQUANT_OUT_OF_RANGE,134 ERR_INFO_DQUANT_OUT_OF_RANGE,
135 ERR_INFO_CAVLC_INVALID_PREFIX,135 ERR_INFO_CAVLC_INVALID_PREFIX,
136 ERR_INFO_CAVLC_INVALID_LEVEL,
136 ERR_INFO_CAVLC_INVALID_TOTAL_COEFF_OR_TRAILING_ONES,137 ERR_INFO_CAVLC_INVALID_TOTAL_COEFF_OR_TRAILING_ONES,
137 ERR_INFO_CAVLC_INVALID_ZERO_LEFT,138 ERR_INFO_CAVLC_INVALID_ZERO_LEFT,
138 ERR_INFO_CAVLC_INVALID_RUN_BEFORE,139 ERR_INFO_CAVLC_INVALID_RUN_BEFORE,
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