Showing the changes to codec/decoder/core/src/au_parser.cpp (1 of 22 files). Show all
Unified · Split
| @@ -608,7 +608,7 @@ int32_t ParseNonVclNal (PWelsDecoderContext pCtx, uint8_t* pRbsp, const int32_t · 607 unmodified lines | |||
| 608 | pCtx->iErrorCode |= dsBitstreamError; | 608 | pCtx->iErrorCode |= dsBitstreamError; |
| 609 | return iErr; | 609 | return iErr; |
| 610 | } | 610 | } |
| 611 | 611 | pCtx->bHasNewSps = true; | |
| 612 | break; | 612 | break; |
| 613 | 613 | ||
| 614 | case NAL_UNIT_PPS: | 614 | case NAL_UNIT_PPS: |
| @@ -628,11 +628,12 @@ int32_t ParseNonVclNal (PWelsDecoderContext pCtx, uint8_t* pRbsp, const int32_t · 13 unmodified lines | |||
| 628 | pCtx->iErrorCode |= dsNoParamSets; | 628 | pCtx->iErrorCode |= dsNoParamSets; |
| 629 | else | 629 | else |
| 630 | pCtx->iErrorCode |= dsBitstreamError; | 630 | pCtx->iErrorCode |= dsBitstreamError; |
| 631 | pCtx->bHasNewSps = false; | ||
| 631 | return iErr; | 632 | return iErr; |
| 632 | } | 633 | } |
| 633 | 634 | ||
| 634 | pCtx->sSpsPpsCtx.bPpsExistAheadFlag = true; | 635 | pCtx->sSpsPpsCtx.bPpsExistAheadFlag = true; |
| 635 | 636 | ++ (pCtx->sSpsPpsCtx.iSeqId); | |
| 636 | break; | 637 | break; |
| 637 | 638 | ||
| 638 | case NAL_UNIT_SEI: | 639 | case NAL_UNIT_SEI: |