disable EC SetOption
This commit is contained in:
parent
f003fa1fe6
commit
84848bb7d3
@ -263,12 +263,10 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) {
|
|||||||
|
|
||||||
return cmResultSuccess;
|
return cmResultSuccess;
|
||||||
} else if (eOptID == DECODER_OPTION_ERROR_CON_IDC) { // Indicate error concealment status
|
} else if (eOptID == DECODER_OPTION_ERROR_CON_IDC) { // Indicate error concealment status
|
||||||
if (pOption == NULL) //Default: SLICE_COPY, enable
|
WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_WARNING,
|
||||||
iVal = ERROR_CON_SLICE_COPY;
|
"CWelsDecoder::SetOption for ERROR_CON_IDC not permmited! Current eErrorConMethod = %d. Value can be set in Initialize() only!",
|
||||||
else
|
(int32_t) m_pDecContext->eErrorConMethod);
|
||||||
iVal = * ((int*)pOption); //EC method
|
return cmInitParaError;
|
||||||
m_pDecContext->eErrorConMethod = (ERROR_CON_IDC) iVal;
|
|
||||||
return cmResultSuccess;
|
|
||||||
} else if (eOptID == DECODER_OPTION_TRACE_LEVEL) {
|
} else if (eOptID == DECODER_OPTION_TRACE_LEVEL) {
|
||||||
if (m_pWelsTrace) {
|
if (m_pWelsTrace) {
|
||||||
uint32_t level = * ((uint32_t*)pOption);
|
uint32_t level = * ((uint32_t*)pOption);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user