Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 3 files). Show all
Unified · Split
| @@ -689,7 +689,9 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 688 unmodified lines | |||
| 689 | #endif//REC_FRAME_COUNT | 689 | #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 rate | 697 | 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: { |