Merge pull request #1400 from mstorsjo/warning-fix
Fix compiler warnings
This commit is contained in:
commit
52419bd13e
@ -3029,21 +3029,21 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour
|
||||
if (iSpatialNum < 1) { // skip due to temporal layer settings (different frame rate)
|
||||
++ pCtx->iCodingIndex;
|
||||
pFbi->eFrameType = videoFrameTypeSkip;
|
||||
WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8d, skip one frame",pSrcPic->uiTimeStamp);
|
||||
WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8"PRId64", skip one frame", (int64_t)pSrcPic->uiTimeStamp);
|
||||
return ENC_RETURN_SUCCESS;
|
||||
}
|
||||
|
||||
eFrameType = DecideFrameType (pCtx, iSpatialNum);
|
||||
if (eFrameType == videoFrameTypeSkip) {
|
||||
pFbi->eFrameType = eFrameType;
|
||||
WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8d, skip one frame",pSrcPic->uiTimeStamp);
|
||||
WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8"PRId64", skip one frame", (int64_t)pSrcPic->uiTimeStamp);
|
||||
return ENC_RETURN_SUCCESS;
|
||||
}
|
||||
|
||||
//loop each layer to check if have skip frame when RC and frame skip enable
|
||||
if (CheckFrameSkipBasedMaxbr (pCtx, iSpatialNum, eFrameType, (uint32_t)pSrcPic->uiTimeStamp)) {
|
||||
pFbi->eFrameType = videoFrameTypeSkip;
|
||||
WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8d, skip one frame",pSrcPic->uiTimeStamp);
|
||||
WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,"[Rc] Frame timestamp = %8"PRId64", skip one frame", (int64_t)pSrcPic->uiTimeStamp);
|
||||
return ENC_RETURN_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -161,8 +161,6 @@ TEST_P (EncodeDecodeTestAPI, DecoderVclNal) {
|
||||
int rv = encoder_->InitializeExt (¶m_);
|
||||
ASSERT_TRUE (rv == cmResultSuccess);
|
||||
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
|
||||
int32_t iTraceLevel = WELS_LOG_QUIET;
|
||||
encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
|
||||
decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
|
||||
@ -199,7 +197,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionFramenum) {
|
||||
int rv = encoder_->InitializeExt (¶m_);
|
||||
ASSERT_TRUE (rv == cmResultSuccess);
|
||||
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
int32_t iTraceLevel = WELS_LOG_QUIET;
|
||||
encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
|
||||
decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
|
||||
@ -239,7 +236,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionIDR) {
|
||||
|
||||
//init for encoder
|
||||
// I420: 1(Y) + 1/4(U) + 1/4(V)
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
int32_t iTraceLevel = WELS_LOG_QUIET;
|
||||
encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
|
||||
decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
|
||||
@ -482,7 +478,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionLTR_ALLIDR) {
|
||||
encoder_->Uninitialize();
|
||||
int rv = encoder_->InitializeExt (¶m_);
|
||||
ASSERT_TRUE (rv == cmResultSuccess);
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
|
||||
prepareEncDecParam(p);
|
||||
|
||||
@ -578,7 +573,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionLTR_Engine) {
|
||||
int rv = encoder_->InitializeExt (¶m_);
|
||||
ASSERT_TRUE (rv == cmResultSuccess);
|
||||
m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
|
||||
prepareEncDecParam(p);
|
||||
|
||||
@ -644,7 +638,6 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_DISABLE) {
|
||||
rv = decoder_->Initialize (&decParam);
|
||||
ASSERT_EQ (0, rv);
|
||||
m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
|
||||
prepareEncDecParam(p);
|
||||
int32_t iTraceLevel = WELS_LOG_QUIET;
|
||||
@ -701,7 +694,6 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_SLICE_COPY) {
|
||||
int rv = encoder_->InitializeExt (¶m_);
|
||||
ASSERT_TRUE (rv == cmResultSuccess);
|
||||
m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
|
||||
prepareEncDecParam(p);
|
||||
int32_t iTraceLevel = WELS_LOG_QUIET;
|
||||
@ -760,7 +752,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionTid_AVC_NOPREFIX) {
|
||||
int rv = encoder_->InitializeExt (¶m_);
|
||||
ASSERT_TRUE (rv == cmResultSuccess);
|
||||
m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
prepareEncDecParam(p);
|
||||
int32_t iTraceLevel = WELS_LOG_QUIET;
|
||||
encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
|
||||
@ -833,7 +824,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionTid_AVC_WITH_PREFIX_NOLOSS) {
|
||||
int rv = encoder_->InitializeExt (¶m_);
|
||||
ASSERT_TRUE (rv == cmResultSuccess);
|
||||
m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
|
||||
prepareEncDecParam(p);
|
||||
int32_t iTraceLevel = WELS_LOG_QUIET;
|
||||
@ -896,7 +886,6 @@ TEST_P (EncodeDecodeTestAPI, GetOptionTid_SVC_L1_NOLOSS) {
|
||||
int rv = encoder_->InitializeExt (¶m_);
|
||||
ASSERT_TRUE (rv == cmResultSuccess);
|
||||
m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
|
||||
prepareEncDecParam(p);
|
||||
int32_t iTraceLevel = WELS_LOG_QUIET;
|
||||
@ -954,7 +943,6 @@ TEST_P (EncodeDecodeTestAPI, SetOption_Trace) {
|
||||
int rv = encoder_->InitializeExt (¶m_);
|
||||
ASSERT_TRUE (rv == cmResultSuccess);
|
||||
m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
|
||||
prepareEncDecParam(p);
|
||||
int32_t iTraceLevel = WELS_LOG_QUIET;
|
||||
@ -1020,7 +1008,6 @@ TEST_P (EncodeDecodeTestAPI, SetOption_Trace_NULL) {
|
||||
int rv = encoder_->InitializeExt (¶m_);
|
||||
ASSERT_TRUE (rv == cmResultSuccess);
|
||||
m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
|
||||
prepareEncDecParam(p);
|
||||
|
||||
@ -1094,7 +1081,6 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECIDC_GeneralSliceChange) {
|
||||
EXPECT_EQ (uiGet, uiEcIdc);
|
||||
|
||||
//Start for enc/dec
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
|
||||
prepareEncDecParam(p);
|
||||
int32_t iTraceLevel = WELS_LOG_QUIET;
|
||||
@ -1180,7 +1166,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificFrameChange) {
|
||||
EXPECT_EQ (uiGet, uiEcIdc);
|
||||
|
||||
//Start for enc/dec
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
int iIdx = 0;
|
||||
int len = 0;
|
||||
unsigned char* pData[3] = { NULL };
|
||||
@ -1316,7 +1301,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificSliceChange_IDRLoss) {
|
||||
decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
|
||||
|
||||
//Start for enc/dec
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
int iIdx = 0;
|
||||
int len = 0;
|
||||
unsigned char* pData[3] = { NULL };
|
||||
@ -1451,7 +1435,6 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificSliceChange_IDRNoLoss) {
|
||||
decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
|
||||
|
||||
//Start for enc/dec
|
||||
int frameSize = p.width * p.height * 3 / 2;
|
||||
int iIdx = 0;
|
||||
int len = 0;
|
||||
unsigned char* pData[3] = { NULL };
|
||||
|
Loading…
Reference in New Issue
Block a user