From 51c918f212dcc6acf1e051adffafb4b1dfbdf4b9 Mon Sep 17 00:00:00 2001 From: huili2 Date: Fri, 9 May 2014 01:12:08 -0700 Subject: [PATCH] for PS error logic for EC --- codec/decoder/core/src/au_parser.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/codec/decoder/core/src/au_parser.cpp b/codec/decoder/core/src/au_parser.cpp index 47b80514..3f96cf74 100644 --- a/codec/decoder/core/src/au_parser.cpp +++ b/codec/decoder/core/src/au_parser.cpp @@ -493,7 +493,8 @@ int32_t ParseNonVclNal (PWelsDecoderContext pCtx, uint8_t* pRbsp, const int32_t #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 @@ int32_t ParseNonVclNal (PWelsDecoderContext pCtx, uint8_t* pRbsp, const int32_t #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; }