History

Change the name and call logic of CheckRefPicturesComplete function.

Haibo Zhu committed 11 years ago

Commit 590eef61 parent affa7532 files · +8 −4Browse files

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

Unified · Split

codec/decoder/core/src/decoder_core.cpp+7−3
@@ -2061,8 +2061,12 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 2060 unmodified lines
20612061 }
20622062 }
20632063 }
2064− if (bAllRefComplete && (pCtx->sRefPic.uiRefCount[LIST_0] > 0 || pCtx->eSliceType != I_SLICE)) {
2065− bAllRefComplete &= bCheckRefPicturesComplete (pCtx);
2064+ if (bAllRefComplete && pCtx->eSliceType != I_SLICE) {
2065+ if (pCtx->sRefPic.uiRefCount[LIST_0] > 0) {
2066+ bAllRefComplete &= CheckRefPicturesComplete (pCtx);
2067+ } else {
2068+ bAllRefComplete = false;
2069+ }
20662070 }
20672071 }
20682072 #if defined (_DEBUG) && !defined (CODEC_FOR_TESTBED)
@@ -2182,7 +2186,7 @@ bool CheckAndFinishLastPic (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferIn · 113 unmodified lines
21822186 return ERR_NONE;
21832187 }
21842188
2185−bool bCheckRefPicturesComplete (PWelsDecoderContext pCtx) {
2189+bool CheckRefPicturesComplete (PWelsDecoderContext pCtx) {
21862190 // Multi Reference, RefIdx may differ
21872191 bool bAllRefComplete = true;
21882192 int32_t iRealMbIdx;

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