ref: 3a0777201c4aeb1680dc08724cb6d1b1bf6fe255
parent: 14f2fe214f36c7e9db7a98c835d6bf0b838e2371
author: ruil2 <[email protected]>
date: Thu Jun 26 12:17:46 EDT 2014
remove temporal layer checking
--- a/codec/encoder/core/src/au_set.cpp
+++ b/codec/encoder/core/src/au_set.cpp
@@ -123,15 +123,6 @@
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
iRefFrame = WELS_CLIP3 ((pParam->iTemporalLayerNum + pParam->iLTRRefNum), MIN_REF_PIC_COUNT,