shithub: openh264

Download patch

ref: 2ad7bb92334f09ea6fd31933258fb1114b94db4f
parent: 83abff213906b123865e16685496400d430708a7
author: sijchen <[email protected]>
date: Tue Apr 29 07:10:15 EDT 2014

adjust the intra md under scc

--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -2423,7 +2423,7 @@
   SWelsFuncPtrList* pFuncList = pCtx->pFuncList;
 
   /* function pointers conditional assignment under sWelsEncCtx, layer_mb_enc_rec (in stack) is exclusive */
-  if (kbHighestSpatialLayer) {
+  if (kbHighestSpatialLayer && pCtx->pSvcParam->iUsageType == CAMERA_VIDEO_REAL_TIME) {
     SetFastCodingFunc (pFuncList);
   } else {
     SetNormalCodingFunc (pFuncList);