Merge pull request #1595 from ruil2/update_2
should not set WELS_LOG_ERROR level in encoder initilization.
This commit is contained in:
commit
c2d585761a
@ -328,7 +328,7 @@ enum {
|
|||||||
WELS_LOG_DETAIL = 1 << 4, ///< per packet/frame log
|
WELS_LOG_DETAIL = 1 << 4, ///< per packet/frame log
|
||||||
WELS_LOG_RESV = 1 << 5, ///< resversed log iLevel
|
WELS_LOG_RESV = 1 << 5, ///< resversed log iLevel
|
||||||
WELS_LOG_LEVEL_COUNT = 6,
|
WELS_LOG_LEVEL_COUNT = 6,
|
||||||
WELS_LOG_DEFAULT = WELS_LOG_DEBUG ///< default log iLevel in Wels codec
|
WELS_LOG_DEFAULT = WELS_LOG_INFO ///< default log iLevel in Wels codec
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -166,8 +166,6 @@ void CWelsH264SVCEncoder::InitEncoder (void) {
|
|||||||
if (m_pWelsTrace == NULL) {
|
if (m_pWelsTrace == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pWelsTrace->SetTraceLevel (WELS_LOG_ERROR);
|
|
||||||
WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::InitEncoder(), openh264 codec version = %s",
|
WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_INFO, "CWelsH264SVCEncoder::InitEncoder(), openh264 codec version = %s",
|
||||||
VERSION_NUMBER);
|
VERSION_NUMBER);
|
||||||
}
|
}
|
||||||
|
@ -1276,12 +1276,13 @@ TEST_P (EncodeDecodeTestAPI, SetOption_Trace) {
|
|||||||
pFunc = TestOutPutTrace;
|
pFunc = TestOutPutTrace;
|
||||||
pTraceInfo = &sTrace;
|
pTraceInfo = &sTrace;
|
||||||
sTrace.iTarLevel = iTraceLevel;
|
sTrace.iTarLevel = iTraceLevel;
|
||||||
|
encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
|
||||||
|
decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
|
||||||
encoder_->SetOption (ENCODER_OPTION_TRACE_CALLBACK, &pFunc);
|
encoder_->SetOption (ENCODER_OPTION_TRACE_CALLBACK, &pFunc);
|
||||||
encoder_->SetOption (ENCODER_OPTION_TRACE_CALLBACK_CONTEXT, &pTraceInfo);
|
encoder_->SetOption (ENCODER_OPTION_TRACE_CALLBACK_CONTEXT, &pTraceInfo);
|
||||||
decoder_->SetOption (DECODER_OPTION_TRACE_CALLBACK, &pFunc);
|
decoder_->SetOption (DECODER_OPTION_TRACE_CALLBACK, &pFunc);
|
||||||
decoder_->SetOption (DECODER_OPTION_TRACE_CALLBACK_CONTEXT, &pTraceInfo);
|
decoder_->SetOption (DECODER_OPTION_TRACE_CALLBACK_CONTEXT, &pTraceInfo);
|
||||||
encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
|
|
||||||
decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
|
|
||||||
|
|
||||||
int32_t iSpsPpsIdAddition = 1;
|
int32_t iSpsPpsIdAddition = 1;
|
||||||
encoder_->SetOption (ENCODER_OPTION_ENABLE_SPS_PPS_ID_ADDITION, &iSpsPpsIdAddition);
|
encoder_->SetOption (ENCODER_OPTION_ENABLE_SPS_PPS_ID_ADDITION, &iSpsPpsIdAddition);
|
||||||
|
Loading…
Reference in New Issue
Block a user