shithub: openh264

Download patch

ref: 30687f464702642031d4946d8949d085c933b04b
parent: ba7b4adb5746014008b54f3364126b19cefb93be
parent: 2ad7bb92334f09ea6fd31933258fb1114b94db4f
author: ruil2 <[email protected]>
date: Sun May 4 10:25:10 EDT 2014

Merge pull request #761 from sijchen/md_merge31

[Encoder MD] Adjust MD under Screen Content route

--- 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);