shithub: openh264

Download patch

ref: 2d265877a9d59ee147c09ef24beb6c9516d9fc79
parent: fe5b8d1a696437f2b29eafd44789e09a43ccff88
author: zhiliang wang <[email protected]>
date: Tue May 6 06:45:25 EDT 2014

Add func init for welsfillingPred

--- a/codec/encoder/core/src/sample.cpp
+++ b/codec/encoder/core/src/sample.cpp
@@ -43,6 +43,7 @@
 
 #include "mc.h"
 #include "cpu_core.h"
+#include "get_intra_predictor.h"
 
 namespace WelsSVCEnc {
 int32_t WelsSampleSatd4x4_c (uint8_t* pSample1, int32_t iStride1, uint8_t* pSample2, int32_t iStride2) {
@@ -150,7 +151,7 @@
     iBestMode = 2;
     iBestCost = iCurCost;
   }
-
+  WelsInitFillingPredFuncs(WELS_CPU_SSE2);
   WelsI4x4LumaPredH_c (uiLocalBuffer[1], pDec, iDecStride);
   iCurCost = WelsSampleSatd4x4_c (uiLocalBuffer[1], 4, pEnc, iEncStride) + iLambda1;
   if (iCurCost < iBestCost) {