This makes it even clearer for users about how to set this field.
Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 4 files). Show all
Unified · Split
| @@ -905,7 +905,7 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 904 unmodified lines | ||
| 905 | 905 | break; |
| 906 | 906 | case ENCODER_OPTION_RC_MODE: { // 0:quality mode;1:bit-rate mode;2:bitrate limited mode |
| 907 | 907 | int32_t iValue = * ((int32_t*)pOption); |
| 908 | − m_pEncContext->pSvcParam->iRCMode = iValue; | |
| 908 | + m_pEncContext->pSvcParam->iRCMode = (RC_MODES) iValue; | |
| 909 | 909 | } |
| 910 | 910 | break; |
| 911 | 911 | case ENCODER_PADDING_PADDING: { // 0:disable padding;1:padding |