Showing the changes to codec/decoder/core/src/parse_mb_syn_cavlc.cpp (1 of 1 file). Show all
Unified · Split
| @@ -649,6 +649,9 @@ static int32_t CavlcGetRunBefore (int32_t iRun[16], SReadBitsCache* pBitsCache, · 648 unmodified lines | |||
| 649 | } | 649 | } |
| 650 | } | 650 | } |
| 651 | } else { | 651 | } else { |
| 652 | for (int j = i; j < uiTotalCoeff; j++) { | ||
| 653 | iRun[j] = 0; | ||
| 654 | } | ||
| 652 | return iUsedBits; | 655 | return iUsedBits; |
| 653 | } | 656 | } |
| 654 | 657 | ||
| @@ -665,7 +668,7 @@ int32_t WelsResidualBlockCavlc (SVlcTable* pVlcTable, uint8_t* pNonZeroCountCach · 10 unmodified lines | |||
| 665 | const uint8_t* kpZigzagTable, int32_t iResidualProperty, int16_t* pTCoeff, uint8_t uiQp, | 668 | const uint8_t* kpZigzagTable, int32_t iResidualProperty, int16_t* pTCoeff, uint8_t uiQp, |
| 666 | PWelsDecoderContext pCtx) { | 669 | PWelsDecoderContext pCtx) { |
| 667 | int32_t iLevel[16], iZerosLeft, iCoeffNum; | 670 | int32_t iLevel[16], iZerosLeft, iCoeffNum; |
| 668 | int32_t iRun[16] = {0}; | 671 | int32_t iRun[16]; |
| 669 | int32_t iCurNonZeroCacheIdx, i; | 672 | int32_t iCurNonZeroCacheIdx, i; |
| 670 | const uint16_t* kpDequantCoeff = g_kuiDequantCoeff[uiQp]; | 673 | const uint16_t* kpDequantCoeff = g_kuiDequantCoeff[uiQp]; |
| 671 | int8_t nA, nB, nC; | 674 | int8_t nA, nB, nC; |