shithub: openh264

Download patch

ref: a62784e482ed2f1aed78a87f27c23b0551399728
parent: 7d7a5c28bc0d63897e5ab524e535f8c0ed1ff351
parent: a484681202a96f592d3ee43cae96c557c38e77b5
author: huili2 <huili2@cisco.com>
date: Thu May 21 11:39:07 EDT 2015

Merge pull request #1956 from HaiboZhu/Debug_EC_off_mosaic

Fix bug about the decoder with mosaic when EC off

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