shithub: openh264

Download patch

ref: 18b202df0a872ec74e03ecadf191f719121667e1
parent: 5921e5e7d3c947db3eb6a3e09e126faeb6ab56b7
parent: 0ef69e55e21bfe918a2d6f02584a41690285a0df
author: sijchen <sijchen@cisco.com>
date: Thu Mar 5 12:05:07 EST 2015

Merge pull request #1837 from mstorsjo/initialize-func-pointers

Set pfMeCost to NULL when it isn't initialized

--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -2982,6 +2982,8 @@
       pFuncList->pfCalculateSatd = CalculateSatdCost;
       pFuncList->pfInterFineMd = WelsMdInterFinePartition;
     }
+  } else {
+    pFuncList->sSampleDealingFuncs.pfMeCost = NULL;
   }
 
   //to init at each frame will be needed when dealing with hybrid content (camera+screen)