shithub: openh264

Download patch

ref: 20c0464d21a08fed9e77e16b611f6366d14a8202
parent: fa9735b3314eba3eb2e0ae511909d79aab321a6a
parent: 49df436616e734a4338fca872e174ff037203f4a
author: Licai Guo <[email protected]>
date: Tue Apr 1 09:29:46 EDT 2014

Merge pull request #606 from huili2/PredUT_fix

fix bug of assign data of UT code

--- a/test/decoder/DecUT_PredMv.cpp
+++ b/test/decoder/DecUT_PredMv.cpp
@@ -145,7 +145,7 @@
   }
 }
 
-void CopyMvInputData (SAnchorMvPred* pDstMvPred, SWelsMvPred* pSrcMvPred) {
+void CopyMvInputData (SWelsMvPred* pDstMvPred, SAnchorMvPred* pSrcMvPred) {
   int32_t i, j, k;
   //fill MV data and refIdx
   for (i = 0; i < 2; ++i) {
@@ -160,7 +160,7 @@
 
 #define INIT_MV_DATA \
   AssignMvInputData (&sAncMvPred); \
-  CopyMvInputData (&sAncMvPred, &sWelsMvPred);
+  CopyMvInputData (&sWelsMvPred, &sAncMvPred);
 
 #define TEST_MV_PRED \
   AnchorPredMv (sAncMvPred.iMvArray,  sAncMvPred.iRefIdxArray, iIndex, iBlockWidth, iRef,  sAncMvPred.iMvp); \