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 | 264 | return cmResultSuccess; |
| 265 | 265 | } else if (eOptID == DECODER_OPTION_ERROR_CON_IDC) { // Indicate error concealment status |
| 266 | − if (pOption == NULL) //Default: SLICE_COPY, enable | |
| 267 | − iVal = ERROR_CON_SLICE_COPY; | |
| 268 | − else | |
| 269 | − iVal = * ((int*)pOption); //EC method | |
| 270 | − m_pDecContext->eErrorConMethod = (ERROR_CON_IDC) iVal; | |
| 271 | − return cmResultSuccess; | |
| 266 | + WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_WARNING, | |
| 267 | + "CWelsDecoder::SetOption for ERROR_CON_IDC not permmited! Current eErrorConMethod = %d. Value can be set in Initialize() only!", | |
| 268 | + (int32_t) m_pDecContext->eErrorConMethod); | |
| 269 | + return cmInitParaError; | |
| 272 | 270 | } else if (eOptID == DECODER_OPTION_TRACE_LEVEL) { |
| 273 | 271 | if (m_pWelsTrace) { |
| 274 | 272 | uint32_t level = * ((uint32_t*)pOption); |