ref: 5dabfa1ee97dfc1f0de3d977b8565a3c2df6194b
parent: 642e50ba2e55b4cb61dd6d340c17dfdafe0194a3
author: xiaotiansf <xiaotianshimail@gmail.com>
date: Sun Nov 3 14:09:43 EST 2019
replace magic number 17 with MAX_DPB_COUNT.
--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -2614,8 +2614,8 @@
memset (pCtx->sMb.pSliceIdc[i], 0xff, (pCtx->sMb.iMbWidth * pCtx->sMb.iMbHeight * sizeof (int32_t)));
memset (pCtx->pCurDqLayer->pMbCorrectlyDecodedFlag, 0, pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight * sizeof (bool));
memset (pCtx->pCurDqLayer->pMbRefConcealedFlag, 0, pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight * sizeof (bool));
- memset (pCtx->pDec->pRefPic[LIST_0], 0, sizeof (PPicture) * 17);
- memset (pCtx->pDec->pRefPic[LIST_1], 0, sizeof (PPicture) * 17);
+ memset (pCtx->pDec->pRefPic[LIST_0], 0, sizeof (PPicture) * MAX_DPB_COUNT);
+ memset (pCtx->pDec->pRefPic[LIST_1], 0, sizeof (PPicture) * MAX_DPB_COUNT);
pCtx->pDec->iMbNum = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight;
pCtx->pDec->iMbEcedNum = 0;
pCtx->pDec->iMbEcedPropNum = 0;