Showing the changes to codec/decoder/core/src/cabac_decoder.cpp (1 of 11 files). Show all
Unified · Split
| @@ -107,7 +107,7 @@ int32_t Read32BitsCabac (PWelsCabacDecEngine pDecEngine, uint32_t& uiValue, int3 · 106 unmodified lines | |||
| 107 | iNumBitsRead = 0; | 107 | iNumBitsRead = 0; |
| 108 | uiValue = 0; | 108 | uiValue = 0; |
| 109 | if (iLeftBytes <= 0) { | 109 | 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); |
| 111 | } | 111 | } |
| 112 | switch (iLeftBytes) { | 112 | switch (iLeftBytes) { |
| 113 | case 3: | 113 | case 3: |
| @@ -275,7 +275,7 @@ int32_t DecodeExpBypassCabac (PWelsCabacDecEngine pDecEngine, int32_t iCount, ui · 161 unmodified lines | |||
| 275 | } | 275 | } |
| 276 | } while (uiCode != 0 && iCount != 16); | 276 | } while (uiCode != 0 && iCount != 16); |
| 277 | if (iCount == 16) { | 277 | if (iCount == 16) { |
| 278 | return ERR_CABAC_UNEXPECTED_VALUE; | 278 | return GENERATE_ERROR_NO (ERR_LEVEL_MB_DATA, ERR_CABAC_UNEXPECTED_VALUE); |
| 279 | } | 279 | } |
| 280 | 280 | ||
| 281 | while (iCount--) { | 281 | while (iCount--) { |