shithub: openh264

Download patch

ref: 3c06753dccdcdb400d6ae00b47c69064d0096882
parent: f30ad4e512e84a1376f5223f9a450c075e0b0df9
parent: 091805b883bd15aab93e844b604fad5ed5fce66b
author: ruil2 <ruil2@cisco.com>
date: Thu Jul 23 13:29:09 EDT 2015

Merge pull request #2047 from huili2/T1_error_handling

bugfix for T1 error decoder dealing

--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -2416,8 +2416,10 @@
       pCtx->bFrameFinish = true; //clear frame pending status here!
     } else {
       if (DecodeFrameConstruction (pCtx, ppDst, pDstInfo)) {
-        if (pCtx->sLastNalHdrExt.sNalUnitHeader.uiNalRefIdc > 0)
+        if ((pCtx->sLastNalHdrExt.sNalUnitHeader.uiNalRefIdc > 0) && (pCtx->sLastNalHdrExt.uiTemporalId == 0))
           pCtx->iErrorCode |= dsNoParamSets;
+        else
+          pCtx->iErrorCode |= dsBitstreamError;
         pCtx->pDec = NULL;
         return false;
       }