History

Merge pull request #1567 from dongzha/FixMvCpBug

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

ruil2 committed 11 years ago

Commit 2e153512 parents 8c7aaa8 d58f9093 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
@@ -179,10 +179,11 @@ void WelsDecoderDefaults (PWelsDecoderContext pCtx, SLogContext* pLogCtx) { · 178 unmodified lines
179 */179 */
180static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) {180static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) {
181 int32_t iNumRefFrames = 0;181 int32_t iNumRefFrames = 0;
182 // +2 for EC MV Copy buffer exchange
182 if ((pCtx == NULL) || (pCtx->pSps == NULL)) {183 if ((pCtx == NULL) || (pCtx->pSps == NULL)) {
183 iNumRefFrames = MAX_REF_PIC_COUNT;184 iNumRefFrames = MAX_REF_PIC_COUNT + 2;
184 } else {185 } else {
185 iNumRefFrames = pCtx->pSps->iNumRefFrames + 1;186 iNumRefFrames = pCtx->pSps->iNumRefFrames + 2;
186 }187 }
187 188
188#ifdef LONG_TERM_REF189#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