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
2061 }2061 }
2062 }2062 }
2063 }2063 }
2064 if (bAllRefComplete && (pCtx->sRefPic.uiRefCount[LIST_0] > 0 || pCtx->eSliceType != I_SLICE)) {2064 if (bAllRefComplete && pCtx->eSliceType != I_SLICE) {
2065 bAllRefComplete &= bCheckRefPicturesComplete (pCtx);2065 if (pCtx->sRefPic.uiRefCount[LIST_0] > 0) {
2066 bAllRefComplete &= CheckRefPicturesComplete (pCtx);
2067 } else {
2068 bAllRefComplete = false;
2069 }
2066 }2070 }
2067 }2071 }
2068#if defined (_DEBUG) && !defined (CODEC_FOR_TESTBED)2072#if defined (_DEBUG) && !defined (CODEC_FOR_TESTBED)
@@ -2182,7 +2186,7 @@ bool CheckAndFinishLastPic (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferIn · 113 unmodified lines
2182 return ERR_NONE;2186 return ERR_NONE;
2183}2187}
2184 2188
2185bool bCheckRefPicturesComplete (PWelsDecoderContext pCtx) {2189bool CheckRefPicturesComplete (PWelsDecoderContext pCtx) {
2186 // Multi Reference, RefIdx may differ2190 // Multi Reference, RefIdx may differ
2187 bool bAllRefComplete = true;2191 bool bAllRefComplete = true;
2188 int32_t iRealMbIdx;2192 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