shithub: openh264

Download patch

ref: 593e291d19ada4811c07405b1a519868014799f8
parent: d905d6bdfdff1209ea018dd11dc20c14c0134f70
author: huili2 <huili2@cisco.com>
date: Wed Apr 23 22:26:40 EDT 2014

fix typo of IDR loss

--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -905,7 +905,7 @@
     if (uiActualIdx ==
         pCurAu->uiActualUnitsNum) {	// no found IDR nal within incoming AU, need exit to avoid mosaic issue, 11/19/2009
       WelsLog (pCtx, WELS_LOG_WARNING, "UpdateAccessUnit():::::Key frame lost.....CAN NOT find IDR from current AU.\n");
-      if (pCtx->iErrorCode == ERROR_CON_DISABLE) {
+      if (pCtx->iErrorConMethod == ERROR_CON_DISABLE) {
 #ifdef LONG_TERM_REF
         pCtx->iErrorCode |= dsNoParamSets;
         return dsNoParamSets;