History

(1) add protection for golomb GetUe output value (2) change the max length of cabac bypass to 16

Haibo Zhu committed 11 years ago

Commit 9ba2c981 parent fb617333 files · +15 −17Browse files

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

Unified · Split

codec/decoder/core/src/cabac_decoder.cpp+2−2
@@ -273,8 +273,8 @@ int32_t DecodeExpBypassCabac (PWelsCabacDecEngine pDecEngine, int32_t iCount, ui · 272 unmodified lines
273273 iSymTmp += (1 << iCount);
274274 ++iCount;
275275 }
276− } while (uiCode != 0 && iCount != 31);
277− if (iCount == 31) {
276+ } while (uiCode != 0 && iCount != 16);
277+ if (iCount == 16) {
278278 return ERR_CABAC_UNEXPECTED_VALUE;
279279 }
280280

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