History

remove duplipate eErrorConMethod in decContext compared with pParam"

huili2 committed 9 years ago

Commit d5e304f1 parent 61b9ddc10 files · +69 −66Browse files

Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 10 files). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+5−5
@@ -314,7 +314,7 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) { · 313 unmodified lines
314314 return cmInitParaError;
315315 }
316316
317− m_pDecContext->pParam->eEcActiveIdc = m_pDecContext->eErrorConMethod = (ERROR_CON_IDC) iVal;
317+ m_pDecContext->pParam->eEcActiveIdc = (ERROR_CON_IDC) iVal;
318318 InitErrorCon (m_pDecContext);
319319 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO,
320320 "CWelsDecoder::SetOption for ERROR_CON_IDC = %d.", iVal);
@@ -398,7 +398,7 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 77 unmodified lines
398398 * ((int*)pOption) = iVal;
399399 return cmResultSuccess;
400400 } else if (DECODER_OPTION_ERROR_CON_IDC == eOptID) {
401− iVal = (int) m_pDecContext->eErrorConMethod;
401+ iVal = (int) m_pDecContext->pParam->eEcActiveIdc;
402402 * ((int*)pOption) = iVal;
403403 return cmResultSuccess;
404404 } else if (DECODER_OPTION_GET_STATISTICS == eOptID) { // get decoder statistics info for real time debugging
@@ -535,7 +535,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 130 unmodified lines
535535 //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss.
536536 if ((IS_PARAM_SETS_NALS (eNalType) || NAL_UNIT_CODED_SLICE_IDR == eNalType) ||
537537 (VIDEO_BITSTREAM_AVC == m_pDecContext->eVideoType)) {
538− if (m_pDecContext->eErrorConMethod == ERROR_CON_DISABLE) {
538+ if (m_pDecContext->pParam->eEcActiveIdc == ERROR_CON_DISABLE) {
539539 #ifdef LONG_TERM_REF
540540 m_pDecContext->bParamSetsLostFlag = true;
541541 #else
@@ -555,7 +555,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 13 unmodified lines
555555 m_pDecContext->iIgnoredErrorInfoPacketCount = 0;
556556 }
557557 }
558− if ((m_pDecContext->eErrorConMethod != ERROR_CON_DISABLE) && (pDstInfo->iBufferStatus == 1)) {
558+ if ((m_pDecContext->pParam->eEcActiveIdc != ERROR_CON_DISABLE) && (pDstInfo->iBufferStatus == 1)) {
559559 //TODO after dec status updated
560560 m_pDecContext->iErrorCode |= dsDataErrorConcealed;
561561
@@ -650,7 +650,7 @@ DECODING_STATE CWelsDecoder::DecodeParser (const unsigned char* kpSrc, · 88 unmodified lines
650650 }
651651
652652 m_pDecContext->iErrorCode = dsErrorFree; //initialize at the starting of AU decoding.
653− m_pDecContext->eErrorConMethod = ERROR_CON_DISABLE; //add protection to disable EC here.
653+ m_pDecContext->pParam->eEcActiveIdc = ERROR_CON_DISABLE; //add protection to disable EC here.
654654 if (!m_pDecContext->bFramePending) { //frame complete
655655 m_pDecContext->pParserBsInfo->iNalNum = 0;
656656 memset (m_pDecContext->pParserBsInfo->iNalLenInByte, 0, MAX_NAL_UNITS_IN_LAYER);

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