History

Merge pull request #1440 from shihuade/APIUTV1.4

fix bug in set option return value

sijchen committed 12 years ago

Commit 273e1222 parents 43c62d0 8d5863a3 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
@@ -750,7 +750,9 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 749 unmodified lines
750750 #endif//REC_FRAME_COUNT
751751
752752 /* Check every field whether there is new request for memory block changed or else, Oct. 24, 2008 */
753− WelsEncoderParamAdjust (&m_pEncContext, &sConfig);
753+ if (WelsEncoderParamAdjust (&m_pEncContext, &sConfig)) {
754+ return cmInitParaError;
755+ }
754756 }
755757 break;
756758 case ENCODER_OPTION_FRAME_RATE: { // Maximal input frame rate
@@ -880,7 +882,9 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 123 unmodified lines
880882 break;
881883 case ENCODER_OPTION_LTR: {
882884 SLTRConfig* pLTRValue = ((SLTRConfig*) (pOption));
883− WelsEncoderApplyLTR (&m_pWelsTrace->m_sLogCtx, &m_pEncContext, pLTRValue);
885+ if (WelsEncoderApplyLTR (&m_pWelsTrace->m_sLogCtx, &m_pEncContext, pLTRValue)) {
886+ return cmInitParaError;
887+ }
884888 }
885889 break;
886890 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