ref: 1a394d14328a2ecfd4d4b3fa5169e8d564f2bd73
parent: bffbde9f45bc0f21077109daf620811b7cc96ca8
parent: 84848bb7d3f348921a44b77fc2e27dfb45d2b74c
author: ruil2 <[email protected]>
date: Wed Sep 10 11:15:49 EDT 2014
Merge pull request #1343 from huili2/ec_disable_set disable EC SetOption
--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -263,12 +263,10 @@
return cmResultSuccess;
} else if (eOptID == DECODER_OPTION_ERROR_CON_IDC) { // Indicate error concealment status
- if (pOption == NULL) //Default: SLICE_COPY, enable
- iVal = ERROR_CON_SLICE_COPY;
- else
- iVal = * ((int*)pOption); //EC method
- m_pDecContext->eErrorConMethod = (ERROR_CON_IDC) iVal;
- return cmResultSuccess;
+ WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_WARNING,
+ "CWelsDecoder::SetOption for ERROR_CON_IDC not permmited! Current eErrorConMethod = %d. Value can be set in Initialize() only!",
+ (int32_t) m_pDecContext->eErrorConMethod);
+ return cmInitParaError;
} else if (eOptID == DECODER_OPTION_TRACE_LEVEL) {
if (m_pWelsTrace) {
uint32_t level = * ((uint32_t*)pOption);