Showing the changes to codec/decoder/core/src/au_parser.cpp (1 of 1 file). Show all
Unified · Split
| @@ -749,10 +749,7 @@ int32_t ParseSps (PWelsDecoderContext pCtx, PBitStringAux pBsAux, int32_t* pPicW · 748 unmodified lines | ||
| 749 | 749 | bConstraintSetFlags[5] = !!BsGetOneBit (pBs); // constraint_set5_flag |
| 750 | 750 | BsGetBits (pBs, 2); // reserved_zero_2bits, equal to 0 |
| 751 | 751 | uiLevelIdc = BsGetBits (pBs, 8); // level_idc |
| 752 | − | |
| 753 | 752 | iSpsId = BsGetUe (pBs); // seq_parameter_set_id |
| 754 | − | |
| 755 | − | |
| 756 | 753 | if (iSpsId >= MAX_SPS_COUNT || iSpsId < 0) { // Modified to check invalid negative iSpsId, 12/1/2009 |
| 757 | 754 | WelsLog (pCtx, WELS_LOG_WARNING, " iSpsId is out of range! \n"); |
| 758 | 755 | return GENERATE_ERROR_NO (ERR_LEVEL_PARAM_SETS, ERR_INFO_SPS_ID_OVERFLOW); |