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 | 689 | #endif//REC_FRAME_COUNT |
| 690 | 690 | |
| 691 | 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 | 696 | break; |
| 695 | 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 | 821 | break; |
| 820 | 822 | case ENCODER_OPTION_LTR: { |
| 821 | 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 | 828 | break; |
| 825 | 829 | case ENCODER_OPTION_ENABLE_SSEI: { |