Showing the changes to codec/decoder/core/src/au_parser.cpp (1 of 1 file). Show all
Unified · Split
| @@ -493,7 +493,8 @@ int32_t ParseNonVclNal (PWelsDecoderContext pCtx, uint8_t* pRbsp, const int32_t · 492 unmodified lines | ||
| 493 | 493 | #endif |
| 494 | 494 | iErr = ParseSps (pCtx, pBs, &iPicWidth, &iPicHeight); |
| 495 | 495 | if (ERR_NONE != iErr) { // modified for pSps/pSubsetSps invalid, 12/1/2009 |
| 496 | − pCtx->iErrorCode |= dsNoParamSets; | |
| 496 | + if (pCtx->iErrorConMethod == ERROR_CON_DISABLE) | |
| 497 | + pCtx->iErrorCode |= dsNoParamSets; | |
| 497 | 498 | return iErr; |
| 498 | 499 | } |
| 499 | 500 | |
| @@ -507,7 +508,8 @@ int32_t ParseNonVclNal (PWelsDecoderContext pCtx, uint8_t* pRbsp, const int32_t · 7 unmodified lines | ||
| 507 | 508 | #endif |
| 508 | 509 | iErr = ParsePps (pCtx, &pCtx->sPpsBuffer[0], pBs); |
| 509 | 510 | if (ERR_NONE != iErr) { // modified for pps invalid, 12/1/2009 |
| 510 | − pCtx->iErrorCode |= dsNoParamSets; | |
| 511 | + if (pCtx->iErrorConMethod == ERROR_CON_DISABLE) | |
| 512 | + pCtx->iErrorCode |= dsNoParamSets; | |
| 511 | 513 | return iErr; |
| 512 | 514 | } |
| 513 | 515 | |