History

Merge pull request #1559 from HaiboZhu/EC_off_crash_no_output

Debug for (1) decoder crash when delay decoding (2) no output when EC off

zhilwang committed 11 years ago

Commit 3a731792 parents 69f6db1 aa5e7f75 files · +8 −36Browse files

Showing the changes to codec/decoder/core/src/au_parser.cpp (1 of 5 files). Show all

Unified · Split

codec/decoder/core/src/au_parser.cpp+8−0
@@ -791,6 +791,14 @@ bool CheckSpsActive (PWelsDecoderContext pCtx, PSps pSps) { · 790 unmodified lines
791 if (pCtx->pActiveLayerSps[i] == pSps)791 if (pCtx->pActiveLayerSps[i] == pSps)
792 return true;792 return true;
793 }793 }
794 // Pre-active, will be used soon
795 if (pSps->iMbWidth > 0 && pSps->iMbHeight > 0 && pCtx->bSpsAvailFlags[pSps->iSpsId]
796 && pCtx->pAccessUnitList->uiAvailUnitsNum > 0) {
797 PSps pNextUsedSps =
798 pCtx->pAccessUnitList->pNalUnitsList[pCtx->pAccessUnitList->uiStartPos]->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.pSps;
799 if (pNextUsedSps->iSpsId == pSps->iSpsId)
800 return true;
801 }
794 return false;802 return false;
795}803}
796 804

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