History

bugfix for T1 error decoder dealing

huili2 committed 11 years ago

Commit 091805b1 parent f30ad4e1 file · +3 −1Browse files

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

Unified · Split

codec/decoder/core/src/decoder_core.cpp+3−1
@@ -2416,8 +2416,10 @@ bool CheckAndFinishLastPic (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferIn · 2415 unmodified lines
24162416 pCtx->bFrameFinish = true; //clear frame pending status here!
24172417 } else {
24182418 if (DecodeFrameConstruction (pCtx, ppDst, pDstInfo)) {
2419− if (pCtx->sLastNalHdrExt.sNalUnitHeader.uiNalRefIdc > 0)
2419+ if ((pCtx->sLastNalHdrExt.sNalUnitHeader.uiNalRefIdc > 0) && (pCtx->sLastNalHdrExt.uiTemporalId == 0))
24202420 pCtx->iErrorCode |= dsNoParamSets;
2421+ else
2422+ pCtx->iErrorCode |= dsBitstreamError;
24212423 pCtx->pDec = NULL;
24222424 return false;
24232425 }

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