Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 4 files). Show all
Unified · Split
| @@ -256,10 +256,16 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) { · 255 unmodified lines | |||
| 256 | 256 | ||
| 257 | m_pDecContext->bEndOfStreamFlag = iVal ? true : false; | 257 | m_pDecContext->bEndOfStreamFlag = iVal ? true : false; |
| 258 | 258 | ||
| 259 | return cmResultSuccess; | ||
| 260 | } else if (eOptID == DECODER_OPTION_ERROR_CON_IDC) { // Indicate error concealment status | ||
| 261 | if (pOption == NULL) //Default: SLICE_COPY, enable | ||
| 262 | iVal = ERROR_CON_SLICE_COPY; | ||
| 263 | else | ||
| 264 | iVal = * ((int*)pOption); //EC method | ||
| 265 | m_pDecContext->iErrorConMethod = iVal; | ||
| 259 | return cmResultSuccess; | 266 | return cmResultSuccess; |
| 260 | } | 267 | } |
| 261 | 268 | ||
| 262 | |||
| 263 | return cmInitParaError; | 269 | return cmInitParaError; |
| 264 | } | 270 | } |
| 265 | 271 | ||
| @@ -311,6 +317,10 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 45 unmodified lines | |||
| 311 | iVal = m_pDecContext->iFeedbackTidInAu; | 317 | iVal = m_pDecContext->iFeedbackTidInAu; |
| 312 | * ((int*)pOption) = iVal; | 318 | * ((int*)pOption) = iVal; |
| 313 | return cmResultSuccess; | 319 | return cmResultSuccess; |
| 320 | } else if (DECODER_OPTION_ERROR_CON_IDC == eOptID) { | ||
| 321 | iVal = m_pDecContext->iErrorConMethod; | ||
| 322 | * ((int*)pOption) = iVal; | ||
| 323 | return cmResultSuccess; | ||
| 314 | } | 324 | } |
| 315 | 325 | ||
| 316 | return cmInitParaError; | 326 | return cmInitParaError; |