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 | static void ResetRefPicReferences (const PWelsDecoderContext& pCtx, const PPicture& inPPic) { | 168 | static void ResetRefPicReferences (const PWelsDecoderContext& pCtx, const PPicture& inPPic) { |
| 169 | //seach and reset the references of deleted references. | 169 | //seach and reset the references of deleted references. |
| 170 | if (pCtx->eSliceType != B_SLICE) { | ||
| 171 | return; | ||
| 172 | } | ||
| 170 | for (int32_t list = LIST_0; list < LIST_A; ++list) { | 173 | for (int32_t list = LIST_0; list < LIST_A; ++list) { |
| 171 | int32_t refIdx = 0; | 174 | int32_t refIdx = 0; |
| 172 | PPicture pPic = pCtx->sRefPic.pRefList[list][refIdx]; | 175 | PPicture pPic = pCtx->sRefPic.pRefList[list][refIdx]; |