History

Merge pull request #3321 from xiaotianshi2/oss_fuzz_issue_24459

fix oss-fuzz issue 24459: Timeout due to too many calls to ResetDecoder.

huili2 committed 6 years ago

Commit f02cf482 parents cc92c7d 1bb7efa1 file · +0 −7Browse files

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+0−7
@@ -811,13 +811,6 @@ DECODING_STATE CWelsDecoder::DecodeFrame2WithCtx (PWelsDecoderContext pDecContex · 810 unmodified lines
811 }811 }
812 return dsErrorFree;812 return dsErrorFree;
813 }813 }
814 if ((pDecContext->iErrorCode & (dsBitstreamError | dsDataErrorConcealed)) && pDecContext->eSliceType == B_SLICE) {
815 if (ResetDecoder (pDecContext)) {
816 pDstInfo->iBufferStatus = 0;
817 return (DECODING_STATE)pDecContext->iErrorCode;
818 }
819 return dsErrorFree;
820 }
821 //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss.814 //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss.
822 if ((IS_PARAM_SETS_NALS (eNalType) || NAL_UNIT_CODED_SLICE_IDR == eNalType) ||815 if ((IS_PARAM_SETS_NALS (eNalType) || NAL_UNIT_CODED_SLICE_IDR == eNalType) ||
823 (VIDEO_BITSTREAM_AVC == pDecContext->eVideoType)) {816 (VIDEO_BITSTREAM_AVC == pDecContext->eVideoType)) {

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