History

Fix Bugzilla Bug 152676

xiaotiansf committed 7 years ago

Commit bd8e2991 parent fd36d2a1 file · +4 −2Browse files

Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+4−2
@@ -798,7 +798,8 @@ DECODING_STATE CWelsDecoder::ReorderPicturesInDisplay (unsigned char** ppDst, SB · 797 unmodified lines
798798 ppDst[1] = m_sPictInfoList[m_iPictInfoIndex].pData[1];
799799 ppDst[2] = m_sPictInfoList[m_iPictInfoIndex].pData[2];
800800 m_sPictInfoList[m_iPictInfoIndex].iPOC = sIMinInt32;
801− m_pDecContext->pPicBuff->ppPic[m_sPictInfoList[m_iPictInfoIndex].iPicBuffIdx]->bAvailableFlag = true;
801+ if (m_sPictInfoList[m_iPictInfoIndex].iPicBuffIdx < m_pDecContext->pPicBuff->iCapacity)
802+ m_pDecContext->pPicBuff->ppPic[m_sPictInfoList[m_iPictInfoIndex].iPicBuffIdx]->bAvailableFlag = true;
802803 m_sPictInfoList[m_iPictInfoIndex].bLastGOP = false;
803804 m_iMinPOC = sIMinInt32;
804805 --m_iNumOfPicts;
@@ -835,7 +836,8 @@ DECODING_STATE CWelsDecoder::ReorderPicturesInDisplay (unsigned char** ppDst, SB · 30 unmodified lines
835836 ppDst[1] = m_sPictInfoList[m_iPictInfoIndex].pData[1];
836837 ppDst[2] = m_sPictInfoList[m_iPictInfoIndex].pData[2];
837838 m_sPictInfoList[m_iPictInfoIndex].iPOC = sIMinInt32;
838− m_pDecContext->pPicBuff->ppPic[m_sPictInfoList[m_iPictInfoIndex].iPicBuffIdx]->bAvailableFlag = true;
839+ if (m_sPictInfoList[m_iPictInfoIndex].iPicBuffIdx < m_pDecContext->pPicBuff->iCapacity)
840+ m_pDecContext->pPicBuff->ppPic[m_sPictInfoList[m_iPictInfoIndex].iPicBuffIdx]->bAvailableFlag = true;
839841 m_sPictInfoList[m_iPictInfoIndex].bLastGOP = false;
840842 m_iMinPOC = sIMinInt32;
841843 --m_iNumOfPicts;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t