ref: 4f403ac01540e62601311c41607a26086a88ea60
parent: 14f2fe214f36c7e9db7a98c835d6bf0b838e2371
parent: 3a0777201c4aeb1680dc08724cb6d1b1bf6fe255
author: HaiboZhu <[email protected]>
date: Thu Jun 26 12:48:51 EDT 2014
Merge pull request #1017 from ruil2/remove_check 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,