shithub: openh264

Download patch

ref: f5d086eba1311da8de78e0f97b47ea62952639ab
parent: a810408cdcfce67a5e063cbf58cbeaa9be393127
author: Licai Guo <guolicai@gmail.com>
date: Mon Feb 17 17:16:51 EST 2014

merge the calculate

--- a/codec/decoder/core/src/mc.cpp
+++ b/codec/decoder/core/src/mc.cpp
@@ -138,7 +138,7 @@
   int32_t iPix14 = pSrc[-1] + pSrc[2];
   int32_t iPix23 = pSrc[ 0] + pSrc[1];
 
-  return (iPix05 - ((iPix14 * 4) + iPix14) + (iPix23 * 16) + (iPix23 * 4));
+  return (iPix05 - (iPix14 * 5)+ (iPix23 * 20)); 
 }
 // h: iOffset=1 / v: iOffset=iSrcStride
 static inline int32_t FilterInput8bitWithStride_c (uint8_t* pSrc, const int32_t kiOffset) {