shithub: openh264

Download patch

ref: 8c10cd220f54a36fe9d9d1d7a407dcf90e317e34
parent: 3d5990500b272515a0f72ce58ed98372825bfa33
author: Martin Storsjö <[email protected]>
date: Wed May 14 18:07:38 EDT 2014

Remove an unused static function

This avoids a warning with clang.

This function was added in 4bd6a3a6e8 even though nothing in
that commit actually uses it.

--- a/codec/encoder/core/src/svc_base_layer_md.cpp
+++ b/codec/encoder/core/src/svc_base_layer_md.cpp
@@ -1880,9 +1880,6 @@
 static inline bool IsSameMv (const SMVUnitXY& sMv0, const SMVUnitXY& sMv1) {
   return ((sMv0.iMvX == sMv1.iMvX) && (sMv0.iMvY == sMv1.iMvY));
 }
-static inline int32_t Mvd (const SMVUnitXY& sMv, const SMVUnitXY& sMvp) {
-  return (WELS_ABS (sMv.iMvX - sMvp.iMvX) + WELS_ABS (sMv.iMvY - sMvp.iMvY));
-}
 bool TryModeMerge (SMbCache* pMbCache, SWelsMD* pWelsMd, SMB* pCurMb) {
   SWelsME* pMe8x8 = & (pWelsMd->sMe.sMe8x8[0]);
   const bool bSameMv16x8_0 = IsSameMv (pMe8x8[0].sMv, pMe8x8[1].sMv);