Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 9 files). Show all
Unified · Split
| @@ -471,7 +471,7 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 470 unmodified lines | |||
| 471 | * ((int*)pOption) = iVal; | 471 | * ((int*)pOption) = iVal; |
| 472 | return cmResultSuccess; | 472 | return cmResultSuccess; |
| 473 | } else if (DECODER_OPTION_NUM_OF_FRAMES_REMAINING_IN_BUFFER == eOptID) { | 473 | } else if (DECODER_OPTION_NUM_OF_FRAMES_REMAINING_IN_BUFFER == eOptID) { |
| 474 | if (m_pDecContext->pSps && m_pDecContext->pSps->uiProfileIdc != 66 && m_pDecContext->pPps->bEntropyCodingModeFlag) { | 474 | if (m_pDecContext->pSps && m_pDecContext->pSps->uiProfileIdc != 66) { |
| 475 | * ((int*)pOption) = m_iNumOfPicts > 0 ? m_iNumOfPicts : 0; | 475 | * ((int*)pOption) = m_iNumOfPicts > 0 ? m_iNumOfPicts : 0; |
| 476 | } else { | 476 | } else { |
| 477 | * ((int*)pOption) = 0; | 477 | * ((int*)pOption) = 0; |
| @@ -743,8 +743,7 @@ void CWelsDecoder::OutputStatisticsLog (SDecoderStatistics& sDecoderStatistics) · 265 unmodified lines | |||
| 743 | } | 743 | } |
| 744 | 744 | ||
| 745 | DECODING_STATE CWelsDecoder::ReorderPicturesInDisplay (unsigned char** ppDst, SBufferInfo* pDstInfo) { | 745 | DECODING_STATE CWelsDecoder::ReorderPicturesInDisplay (unsigned char** ppDst, SBufferInfo* pDstInfo) { |
| 746 | if (pDstInfo->iBufferStatus == 1 && m_pDecContext->pSps->uiProfileIdc != 66 | 746 | if (pDstInfo->iBufferStatus == 1 && m_pDecContext->pSps->uiProfileIdc != 66) { |
| 747 | && m_pDecContext->pPps->bEntropyCodingModeFlag) { | ||
| 748 | if (m_pDecContext->pSliceHeader->iPicOrderCntLsb == 0) { | 747 | if (m_pDecContext->pSliceHeader->iPicOrderCntLsb == 0) { |
| 749 | if (m_iNumOfPicts > 0) { | 748 | if (m_iNumOfPicts > 0) { |
| 750 | m_iLastGOPRemainPicts = m_iNumOfPicts; | 749 | m_iLastGOPRemainPicts = m_iNumOfPicts; |