ref: c215e576e659e66809573e15883ec25ae4c233d5
parent: 1b501bb5097a3ca3bf0d5b43cae70e3d4d7debe1
parent: 51c918f212dcc6acf1e051adffafb4b1dfbdf4b9
author: sijchen <[email protected]>
date: Fri May 9 13:08:44 EDT 2014
Merge pull request #810 from huili2/ps_error_logic_ec for PS error logic for EC
--- a/codec/decoder/core/src/au_parser.cpp
+++ b/codec/decoder/core/src/au_parser.cpp
@@ -493,7 +493,8 @@
#endif
iErr = ParseSps (pCtx, pBs, &iPicWidth, &iPicHeight);
if (ERR_NONE != iErr) { // modified for pSps/pSubsetSps invalid, 12/1/2009
- pCtx->iErrorCode |= dsNoParamSets;
+ if (pCtx->iErrorConMethod == ERROR_CON_DISABLE)
+ pCtx->iErrorCode |= dsNoParamSets;
return iErr;
}
@@ -507,7 +508,8 @@
#endif
iErr = ParsePps (pCtx, &pCtx->sPpsBuffer[0], pBs);
if (ERR_NONE != iErr) { // modified for pps invalid, 12/1/2009
- pCtx->iErrorCode |= dsNoParamSets;
+ if (pCtx->iErrorConMethod == ERROR_CON_DISABLE)
+ pCtx->iErrorCode |= dsNoParamSets;
return iErr;
}