History

modify EC API name and remove useless flag

huili2 committed 12 years ago

Commit 933c4771 parent 470246c13 files · +52 −51Browse files

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

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+5−4
@@ -211,7 +211,8 @@ void CWelsDecoder::UninitDecoder (void) { · 210 unmodified lines
211211 if (NULL == m_pDecContext)
212212 return;
213213
214− WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsDecoder::uninit_decoder(), openh264 codec version = %s.", VERSION_NUMBER);
214+ WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsDecoder::uninit_decoder(), openh264 codec version = %s.",
215+ VERSION_NUMBER);
215216
216217 WelsEndDecoder (m_pDecContext);
217218
@@ -265,7 +266,7 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) { · 47 unmodified lines
265266 iVal = ERROR_CON_SLICE_COPY;
266267 else
267268 iVal = * ((int*)pOption); //EC method
268− m_pDecContext->iErrorConMethod = iVal;
269+ m_pDecContext->eErrorConMethod = (ERROR_CON_IDC) iVal;
269270 return cmResultSuccess;
270271 } else if (eOptID == DECODER_OPTION_TRACE_LEVEL) {
271272 if (m_pWelsTrace) {
@@ -339,7 +340,7 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 67 unmodified lines
339340 * ((int*)pOption) = iVal;
340341 return cmResultSuccess;
341342 } else if (DECODER_OPTION_ERROR_CON_IDC == eOptID) {
342− iVal = m_pDecContext->iErrorConMethod;
343+ iVal = (int) m_pDecContext->eErrorConMethod;
343344 * ((int*)pOption) = iVal;
344345 return cmResultSuccess;
345346 }
@@ -399,7 +400,7 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 53 unmodified lines
399400 //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss.
400401 if ((IS_PARAM_SETS_NALS (eNalType) || NAL_UNIT_CODED_SLICE_IDR == eNalType) ||
401402 (VIDEO_BITSTREAM_AVC == m_pDecContext->eVideoType)) {
402− if (m_pDecContext->iErrorConMethod == ERROR_CON_DISABLE) {
403+ if (m_pDecContext->eErrorConMethod == ERROR_CON_DISABLE) {
403404 #ifdef LONG_TERM_REF
404405 m_pDecContext->bParamSetsLostFlag = true;
405406 #else

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