Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -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 status | 265 | } else if (eOptID == DECODER_OPTION_ERROR_CON_IDC) { // Indicate error concealment status |
| 266 | if (pOption == NULL) //Default: SLICE_COPY, enable | 266 | 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 | else | 268 | (int32_t) m_pDecContext->eErrorConMethod); |
| 269 | iVal = * ((int*)pOption); //EC method | 269 | 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); |