shithub: openh264

Download patch

ref: 091805b883bd15aab93e844b604fad5ed5fce66b
parent: f30ad4e512e84a1376f5223f9a450c075e0b0df9
author: huili2 <huili2@cisco.com>
date: Thu Jul 23 07:04:23 EDT 2015

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;
       }