shithub: openh264

Download patch

ref: 0cb2c2d3b06e70a83efe85bd2d80a0257e1dfc9b
parent: f22c47ca5dcb2bcd815c63b1b3b595c5665348d4
author: huili2 <[email protected]>
date: Mon Sep 12 12:17:20 EDT 2016

remove too many log for IDR loss under EC is off

--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -1208,8 +1208,9 @@
         pCurAu->uiActualUnitsNum) { // no found IDR nal within incoming AU, need exit to avoid mosaic issue, 11/19/2009
 
       pCtx->sDecoderStatistics.uiIDRLostNum++;
-      WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING,
-               "UpdateAccessUnit():::::Key frame lost.....CAN NOT find IDR from current AU.");
+      if (!pCtx->bParamSetsLostFlag)
+        WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING,
+                 "UpdateAccessUnit():::::Key frame lost.....CAN NOT find IDR from current AU.");
       pCtx->iErrorCode |= dsRefLost;
       if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) {
 #ifdef LONG_TERM_REF