History

avoid using the same picture buff for prev pic and curr pic

dongzha committed 11 years ago

Commit d58f9091 parent 82b70b33 files · +11 −2Browse files

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

Unified · Split

codec/decoder/core/src/decoder.cpp+3−2
@@ -178,10 +178,11 @@ void WelsDecoderDefaults (PWelsDecoderContext pCtx, SLogContext* pLogCtx) { · 177 unmodified lines
178 */178 */
179static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) {179static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) {
180 int32_t iNumRefFrames = 0;180 int32_t iNumRefFrames = 0;
181 // +2 for EC MV Copy buffer exchange
181 if ((pCtx == NULL) || (pCtx->pSps == NULL)) {182 if ((pCtx == NULL) || (pCtx->pSps == NULL)) {
182 iNumRefFrames = MAX_REF_PIC_COUNT;183 iNumRefFrames = MAX_REF_PIC_COUNT + 2;
183 } else {184 } else {
184 iNumRefFrames = pCtx->pSps->iNumRefFrames + 1;185 iNumRefFrames = pCtx->pSps->iNumRefFrames + 2;
185 }186 }
186 187
187#ifdef LONG_TERM_REF188#ifdef LONG_TERM_REF

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