History

modify return value check inside decoder

unknown committed 10 years ago

Commit 9cb4f4e1 parent 13586a311 files · +216 −197Browse files

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

Unified · Split

codec/decoder/core/src/cabac_decoder.cpp+2−2
@@ -107,7 +107,7 @@ int32_t Read32BitsCabac (PWelsCabacDecEngine pDecEngine, uint32_t& uiValue, int3 · 106 unmodified lines
107107 iNumBitsRead = 0;
108108 uiValue = 0;
109109 if (iLeftBytes <= 0) {
110− return ERR_CABAC_NO_BS_TO_READ;
110+ return GENERATE_ERROR_NO (ERR_LEVEL_MB_DATA, ERR_CABAC_NO_BS_TO_READ);
111111 }
112112 switch (iLeftBytes) {
113113 case 3:
@@ -275,7 +275,7 @@ int32_t DecodeExpBypassCabac (PWelsCabacDecEngine pDecEngine, int32_t iCount, ui · 161 unmodified lines
275275 }
276276 } while (uiCode != 0 && iCount != 16);
277277 if (iCount == 16) {
278− return ERR_CABAC_UNEXPECTED_VALUE;
278+ return GENERATE_ERROR_NO (ERR_LEVEL_MB_DATA, ERR_CABAC_UNEXPECTED_VALUE);
279279 }
280280
281281 while (iCount--) {

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