History

fix bug in set option return value

huashi committed 12 years ago

Commit 8d5863a1 parent 452fb863 files · +11 −5Browse files

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

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+6−2
@@ -689,7 +689,9 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 688 unmodified lines
689#endif//REC_FRAME_COUNT689#endif//REC_FRAME_COUNT
690 690
691 /* Check every field whether there is new request for memory block changed or else, Oct. 24, 2008 */691 /* Check every field whether there is new request for memory block changed or else, Oct. 24, 2008 */
692 WelsEncoderParamAdjust (&m_pEncContext, &sConfig);692 if (WelsEncoderParamAdjust (&m_pEncContext, &sConfig)) {
693 return cmInitParaError;
694 }
693 }695 }
694 break;696 break;
695 case ENCODER_OPTION_FRAME_RATE: { // Maximal input frame rate697 case ENCODER_OPTION_FRAME_RATE: { // Maximal input frame rate
@@ -819,7 +821,9 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 123 unmodified lines
819 break;821 break;
820 case ENCODER_OPTION_LTR: {822 case ENCODER_OPTION_LTR: {
821 SLTRConfig* pLTRValue = ((SLTRConfig*) (pOption));823 SLTRConfig* pLTRValue = ((SLTRConfig*) (pOption));
822 WelsEncoderApplyLTR (&m_pWelsTrace->m_sLogCtx, &m_pEncContext, pLTRValue);824 if (WelsEncoderApplyLTR (&m_pWelsTrace->m_sLogCtx, &m_pEncContext, pLTRValue)) {
825 return cmInitParaError;
826 }
823 }827 }
824 break;828 break;
825 case ENCODER_OPTION_ENABLE_SSEI: {829 case ENCODER_OPTION_ENABLE_SSEI: {

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