History

Fix ossz-buzz reported bug 13457. (Don't try to dereference never existing P referemece->reference.

xiaotiansf committed 7 years ago

Commit 4227bea1 parent 0fc55022 files · +3 −6Browse files

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

Unified · Split

codec/decoder/core/src/decoder.cpp+3−0
@@ -167,6 +167,9 @@ static int32_t IncreasePicBuff (PWelsDecoderContext pCtx, PPicBuff* ppPicBuf, co · 166 unmodified lines
167 167
168static void ResetRefPicReferences (const PWelsDecoderContext& pCtx, const PPicture& inPPic) {168static void ResetRefPicReferences (const PWelsDecoderContext& pCtx, const PPicture& inPPic) {
169 //seach and reset the references of deleted references.169 //seach and reset the references of deleted references.
170 if (pCtx->eSliceType != B_SLICE) {
171 return;
172 }
170 for (int32_t list = LIST_0; list < LIST_A; ++list) {173 for (int32_t list = LIST_0; list < LIST_A; ++list) {
171 int32_t refIdx = 0;174 int32_t refIdx = 0;
172 PPicture pPic = pCtx->sRefPic.pRefList[list][refIdx];175 PPicture pPic = pCtx->sRefPic.pRefList[list][refIdx];

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