History

disable EC SetOption

huili2 committed 12 years ago

Commit 84848bb1 parent f003fa11 file · +4 −6Browse files

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

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+4−6
@@ -263,12 +263,10 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) { · 262 unmodified lines
263 263
264 return cmResultSuccess;264 return cmResultSuccess;
265 } else if (eOptID == DECODER_OPTION_ERROR_CON_IDC) { // Indicate error concealment status265 } else if (eOptID == DECODER_OPTION_ERROR_CON_IDC) { // Indicate error concealment status
266 if (pOption == NULL) //Default: SLICE_COPY, enable266 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_WARNING,
267 iVal = ERROR_CON_SLICE_COPY;267 "CWelsDecoder::SetOption for ERROR_CON_IDC not permmited! Current eErrorConMethod = %d. Value can be set in Initialize() only!",
268 else268 (int32_t) m_pDecContext->eErrorConMethod);
269 iVal = * ((int*)pOption); //EC method269 return cmInitParaError;
270 m_pDecContext->eErrorConMethod = (ERROR_CON_IDC) iVal;
271 return cmResultSuccess;
272 } else if (eOptID == DECODER_OPTION_TRACE_LEVEL) {270 } else if (eOptID == DECODER_OPTION_TRACE_LEVEL) {
273 if (m_pWelsTrace) {271 if (m_pWelsTrace) {
274 uint32_t level = * ((uint32_t*)pOption);272 uint32_t level = * ((uint32_t*)pOption);

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