History

Fix Bugzilla reported bug 1522172_2 (second test case) and 1535089.

xiaotiansf committed 7 years ago

Commit ea99af81 parent a1406d52 files · +5 −1Browse files

Showing the changes to codec/decoder (2 of 2 files). Show all

Unified · Split

2 files
  1. codec/decoder/core/src/manage_dec_ref.cpp +4 −0
  2. codec/decoder/plus/src/welsDecoderExt.cpp +1 −1
codec/decoder/core/src/manage_dec_ref.cpp+4−0
@@ -79,6 +79,10 @@ static void SetUnRef (PPicture pRef) { · 78 unmodified lines
7979 pRef->uiSpatialId = -1;
8080 pRef->iSpsId = -1;
8181 pRef->bIsComplete = false;
82+ for (int32_t i = 0; i < MAX_DPB_COUNT; ++i) {
83+ pRef->pRefPic[LIST_0][i] = NULL;
84+ pRef->pRefPic[LIST_1][i] = NULL;
85+ }
8286 }
8387 }
8488
codec/decoder/plus/src/welsDecoderExt.cpp+1−1
@@ -583,7 +583,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 582 unmodified lines
583583
584584 if ((m_pDecContext->iErrorCode & dsRefLost) && m_pDecContext->eSliceType == B_SLICE) {
585585 if (ResetDecoder())
586− return dsOutOfMemory;
586+ return dsRefLost;
587587
588588 return dsErrorFree;
589589 }

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