remove temporal layer checking

This commit is contained in:
ruil2 2014-06-26 16:17:46 +08:00
parent 14f2fe214f
commit 3a0777201c

View File

@ -123,15 +123,6 @@ int32_t WelsCheckRefFrameLimitation (SLogContext* pLogCtx, SWelsSvcCodingParam*
return ENC_RETURN_UNSUPPORTED_PARA; return ENC_RETURN_UNSUPPORTED_PARA;
} }
} }
//check temporal layer number according to the number of reference frame
int32_t iMaxTemporalLayer = pParam->iNumRefFrame - pParam->iLTRRefNum;
if (iMaxTemporalLayer < 1) {
iMaxTemporalLayer = 1;
WelsLog (pLogCtx, WELS_LOG_ERROR, "Invalid the number of reference frame ltr num(%d)\n", pParam->iLTRRefNum);
return ENC_RETURN_UNSUPPORTED_PARA;
}
if (pParam->iTemporalLayerNum > iMaxTemporalLayer)
pParam->iTemporalLayerNum = iMaxTemporalLayer;
//get the maximum num of reference frame according to temporal Layer //get the maximum num of reference frame according to temporal Layer
iRefFrame = WELS_CLIP3 ((pParam->iTemporalLayerNum + pParam->iLTRRefNum), MIN_REF_PIC_COUNT, iRefFrame = WELS_CLIP3 ((pParam->iTemporalLayerNum + pParam->iLTRRefNum), MIN_REF_PIC_COUNT,