History

modify decoder log

dong zhang committed 11 years ago

Commit d28970d1 parent 7c9597c6 files · +69 −11Browse files

Showing the changes to codec/decoder/core/src/au_parser.cpp (1 of 6 files). Show all

Unified · Split

codec/decoder/core/src/au_parser.cpp+15−4
@@ -146,36 +146,47 @@ uint8_t* ParseNalHeader (PWelsDecoderContext pCtx, SNalUnitHeader* pNalUnitHeade · 145 unmodified lines
146146
147147 if (! (IS_SEI_NAL (pNalUnitHeader->eNalUnitType) || IS_SPS_NAL (pNalUnitHeader->eNalUnitType)
148148 || pCtx->bSpsExistAheadFlag)) {
149− if (pCtx->bPrintFrameErrorTraceFlag) {
149+ if (pCtx->bPrintFrameErrorTraceFlag && pCtx->iSpsErrorIgnored == 0) {
150150 WelsLog (pLogCtx, WELS_LOG_WARNING,
151151 "parse_nal(), no exist Sequence Parameter Sets ahead of sequence when try to decode NAL(type:%d).",
152152 pNalUnitHeader->eNalUnitType);
153+ } else {
154+ pCtx->iSpsErrorIgnored++;
153155 }
156+ pCtx->sDecoderStatistics.iSpsNoExistNalNum++;
154157 pCtx->iErrorCode = dsNoParamSets;
155158 return NULL;
156159 }
160+ pCtx->iSpsErrorIgnored = 0;
157161 if (! (IS_SEI_NAL (pNalUnitHeader->eNalUnitType) || IS_PARAM_SETS_NALS (pNalUnitHeader->eNalUnitType)
158162 || pCtx->bPpsExistAheadFlag)) {
159− if (pCtx->bPrintFrameErrorTraceFlag) {
163+ if (pCtx->bPrintFrameErrorTraceFlag && pCtx->iPpsErrorIgnored == 0) {
160164 WelsLog (pLogCtx, WELS_LOG_WARNING,
161165 "parse_nal(), no exist Picture Parameter Sets ahead of sequence when try to decode NAL(type:%d).",
162166 pNalUnitHeader->eNalUnitType);
167+ } else {
168+ pCtx->iPpsErrorIgnored++;
163169 }
170+ pCtx->sDecoderStatistics.iPpsNoExistNalNum++;
164171 pCtx->iErrorCode = dsNoParamSets;
165172 return NULL;
166173 }
174+ pCtx->iPpsErrorIgnored = 0;
167175 if ((IS_VCL_NAL_AVC_BASE (pNalUnitHeader->eNalUnitType) && ! (pCtx->bSpsExistAheadFlag || pCtx->bPpsExistAheadFlag)) ||
168176 (IS_NEW_INTRODUCED_SVC_NAL (pNalUnitHeader->eNalUnitType) && ! (pCtx->bSpsExistAheadFlag || pCtx->bSubspsExistAheadFlag
169177 || pCtx->bPpsExistAheadFlag))) {
170− if (pCtx->bPrintFrameErrorTraceFlag) {
178+ if (pCtx->bPrintFrameErrorTraceFlag && pCtx->iSubSpsErrorIgnored == 0) {
171179 WelsLog (pLogCtx, WELS_LOG_WARNING,
172180 "ParseNalHeader(), no exist Parameter Sets ahead of sequence when try to decode slice(type:%d).",
173181 pNalUnitHeader->eNalUnitType);
182+ } else {
183+ pCtx->iSubSpsErrorIgnored++;
174184 }
185+ pCtx->sDecoderStatistics.iSubSpsNoExistNalNum++;
175186 pCtx->iErrorCode |= dsNoParamSets;
176187 return NULL;
177188 }
178−
189+ pCtx->iSubSpsErrorIgnored = 0;
179190
180191 switch (pNalUnitHeader->eNalUnitType) {
181192 case NAL_UNIT_AU_DELIMITER:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t