Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 3 files). Show all
Unified · Split
| @@ -902,10 +902,15 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 901 unmodified lines | ||
| 902 | 902 | } |
| 903 | 903 | break; |
| 904 | 904 | case ENCODER_OPTION_COMPLEXITY: { |
| 905 | − int32_t iValue = * ((int32_t*)pOption); | |
| 905 | + int32_t iValue = * (static_cast<int32_t*>(pOption)); | |
| 906 | 906 | m_pEncContext->pSvcParam->iComplexityMode = (ECOMPLEXITY_MODE)iValue; |
| 907 | 907 | } |
| 908 | 908 | break; |
| 909 | + case ENCODER_OPTION_IS_LOSSLESS_LINK: { | |
| 910 | + bool bValue = * (static_cast<bool*>(pOption)); | |
| 911 | + m_pEncContext->pSvcParam->bIsLossLessLink = bValue; | |
| 912 | + } | |
| 913 | + break; | |
| 909 | 914 | default: |
| 910 | 915 | return cmInitParaError; |
| 911 | 916 | } |