History

Add clean CAVLC B-Frame decoder support without whitespace change and general fix.

xiaotianshicomcast committed 7 years ago

Commit d8682891 parent 9a815399 files · +1057 −82Browse files

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

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+2−3
@@ -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
745DECODING_STATE CWelsDecoder::ReorderPicturesInDisplay (unsigned char** ppDst, SBufferInfo* pDstInfo) {745DECODING_STATE CWelsDecoder::ReorderPicturesInDisplay (unsigned char** ppDst, SBufferInfo* pDstInfo) {
746 if (pDstInfo->iBufferStatus == 1 && m_pDecContext->pSps->uiProfileIdc != 66746 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;

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