Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 2 files). Show all
Unified · Split
| @@ -167,6 +167,9 @@ static int32_t IncreasePicBuff (PWelsDecoderContext pCtx, PPicBuff* ppPicBuf, co · 166 unmodified lines | ||
| 167 | 167 | |
| 168 | 168 | static void ResetRefPicReferences (const PWelsDecoderContext& pCtx, const PPicture& inPPic) { |
| 169 | 169 | //seach and reset the references of deleted references. |
| 170 | + if (pCtx->eSliceType != B_SLICE) { | |
| 171 | + return; | |
| 172 | + } | |
| 170 | 173 | for (int32_t list = LIST_0; list < LIST_A; ++list) { |
| 171 | 174 | int32_t refIdx = 0; |
| 172 | 175 | PPicture pPic = pCtx->sRefPic.pRefList[list][refIdx]; |