shithub: openh264

Download patch

ref: f02cf48cae01ac087b41a5a125b3bc4f2c71f6a0
parent: cc92c7db21c36e2e3ce9dd62c219f9d2e2a2b9c1
parent: 1bb7efa1ec8d7d8461a2e041bb56961d6d01fbff
author: huili2 <huili2@cisco.com>
date: Mon Sep 7 06:16:33 EDT 2020

Merge pull request #3321 from xiaotianshi2/oss_fuzz_issue_24459

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)) {