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
689689 #endif//REC_FRAME_COUNT
690690
691691 /* 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+ }
693695 }
694696 break;
695697 case ENCODER_OPTION_FRAME_RATE: { // Maximal input frame rate
@@ -819,7 +821,9 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 123 unmodified lines
819821 break;
820822 case ENCODER_OPTION_LTR: {
821823 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+ }
823827 }
824828 break;
825829 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