History

Make the iRCMode field use the RC_MODES type instead of plain int

This makes it even clearer for users about how to set this field.

Martin Storsjö committed 12 years ago

Commit b6883b41 parent 2bc8e614 files · +7 −7Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 4 files). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+1−1
@@ -905,7 +905,7 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 904 unmodified lines
905 break;905 break;
906 case ENCODER_OPTION_RC_MODE: { // 0:quality mode;1:bit-rate mode;2:bitrate limited mode906 case ENCODER_OPTION_RC_MODE: { // 0:quality mode;1:bit-rate mode;2:bitrate limited mode
907 int32_t iValue = * ((int32_t*)pOption);907 int32_t iValue = * ((int32_t*)pOption);
908 m_pEncContext->pSvcParam->iRCMode = iValue;908 m_pEncContext->pSvcParam->iRCMode = (RC_MODES) iValue;
909 }909 }
910 break;910 break;
911 case ENCODER_PADDING_PADDING: { // 0:disable padding;1:padding911 case ENCODER_PADDING_PADDING: { // 0:disable padding;1:padding

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t