From 1a58488aeb9ffc352914bffb84fdfc4cce10cc53 Mon Sep 17 00:00:00 2001 From: huili2 Date: Tue, 8 Jul 2014 17:58:23 -0700 Subject: [PATCH] new IDR inserted as GREY --- codec/decoder/core/src/manage_dec_ref.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/codec/decoder/core/src/manage_dec_ref.cpp b/codec/decoder/core/src/manage_dec_ref.cpp index b13e527a..6df754e7 100644 --- a/codec/decoder/core/src/manage_dec_ref.cpp +++ b/codec/decoder/core/src/manage_dec_ref.cpp @@ -115,9 +115,9 @@ int32_t WelsInitRefList (PWelsDecoderContext pCtx, int32_t iPoc) { if (pCtx->iErrorConMethod != ERROR_CON_DISABLE) { //IDR lost!, recover it for future decoding with data all set to 0 PPicture pRef = PrefetchPic (pCtx->pPicBuff[0]); if (pRef != NULL) { - memset (pRef->pData[0], 0, pRef->iLinesize[0] * pRef->iHeightInPixel); - memset (pRef->pData[1], 0, pRef->iLinesize[1] * pRef->iHeightInPixel / 2); - memset (pRef->pData[2], 0, pRef->iLinesize[2] * pRef->iHeightInPixel / 2); + memset (pRef->pData[0], 128, pRef->iLinesize[0] * pRef->iHeightInPixel); + memset (pRef->pData[1], 128, pRef->iLinesize[1] * pRef->iHeightInPixel / 2); + memset (pRef->pData[2], 128, pRef->iLinesize[2] * pRef->iHeightInPixel / 2); pRef->iFrameNum = 0; pRef->iFramePoc = 0; pRef->uiTemporalId = pRef->uiQualityId = 0;