shithub: openh264

Download patch

ref: 1bb7efa1ec8d7d8461a2e041bb56961d6d01fbff
parent: 885b31f2f6986ea7b98cf766c291a3477ce75b62
author: xiaotianshi2 <[email protected]>
date: Sat Aug 1 15:09:21 EDT 2020

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

--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -811,13 +811,6 @@
       }
       return dsErrorFree;
     }
-    if ((pDecContext->iErrorCode & (dsBitstreamError | dsDataErrorConcealed)) && pDecContext->eSliceType == B_SLICE) {
-      if (ResetDecoder (pDecContext)) {
-        pDstInfo->iBufferStatus = 0;
-        return (DECODING_STATE)pDecContext->iErrorCode;
-      }
-      return dsErrorFree;
-    }
     //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss.
     if ((IS_PARAM_SETS_NALS (eNalType) || NAL_UNIT_CODED_SLICE_IDR == eNalType) ||
         (VIDEO_BITSTREAM_AVC == pDecContext->eVideoType)) {