shithub: openh264

Download patch

ref: 04d7e63a588ed9783aa9a12fdce5fb4d9b6d7f8a
parent: 3a0777201c4aeb1680dc08724cb6d1b1bf6fe255
author: ruil2 <[email protected]>
date: Thu Jun 26 13:18:25 EDT 2014

remove more checking

--- a/codec/encoder/core/src/au_set.cpp
+++ b/codec/encoder/core/src/au_set.cpp
@@ -124,12 +124,6 @@
     }
   }
 
-  //get the maximum num of reference frame according to temporal Layer
-  iRefFrame = WELS_CLIP3 ((pParam->iTemporalLayerNum + pParam->iLTRRefNum), MIN_REF_PIC_COUNT,
-                          MAX_REFERENCE_REORDER_COUNT_NUM);
-  if (pParam->iMaxNumRefFrame < iRefFrame)
-    pParam->iMaxNumRefFrame = iRefFrame;
-
   return ENC_RETURN_SUCCESS;
 }
 static inline int32_t WelsGetLevelIdc (const SWelsSPS* kpSps, float fFrameRate, int32_t iTargetBitRate) {