History

Fix Issues 13030 and 13039 in oss-fuzz.

xiaotiansf committed 7 years ago

Commit 71d619c1 parent 5ae7dc92 files · +23 −3Browse 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+2−1
@@ -826,7 +826,8 @@ int32_t SyncPictureResolutionExt (PWelsDecoderContext pCtx, const int32_t kiMbWi · 825 unmodified lines
826 const int32_t kiPicWidth = kiMbWidth << 4;826 const int32_t kiPicWidth = kiMbWidth << 4;
827 const int32_t kiPicHeight = kiMbHeight << 4;827 const int32_t kiPicHeight = kiMbHeight << 4;
828 //fix Bugzilla Bug1479656 reallocate temp dec picture828 //fix Bugzilla Bug1479656 reallocate temp dec picture
829 if (pCtx->pTempDec != NULL) {829 if (pCtx->pTempDec != NULL && (pCtx->pTempDec->iWidthInPixel != kiPicWidth
830 || pCtx->pTempDec->iHeightInPixel != kiPicHeight)) {
830 FreePicture (pCtx->pTempDec, pCtx->pMemAlign);831 FreePicture (pCtx->pTempDec, pCtx->pMemAlign);
831 pCtx->pTempDec = AllocPicture (pCtx, pCtx->pSps->iMbWidth << 4, pCtx->pSps->iMbHeight << 4);832 pCtx->pTempDec = AllocPicture (pCtx, pCtx->pSps->iMbWidth << 4, pCtx->pSps->iMbHeight << 4);
832 }833 }

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