shithub: openh264

Download patch

ref: ab6931496b1755431c7419b3624a45084dfb4e7f
parent: b647a78bf2b046e79cf5d3598520facf60073d12
parent: d78f8c7ed8beec0d6d0680bc90cb2686a873e051
author: huili2 <[email protected]>
date: Mon Feb 24 12:02:35 EST 2014

Merge pull request #345 from licaiguo/fix-int-conversion-warning

fix int conversion warning, using LD32/ST32

--- a/codec/decoder/core/src/mv_pred.cpp
+++ b/codec/decoder/core/src/mv_pred.cpp
@@ -212,13 +212,13 @@
 
   int16_t iAMV[2], iBMV[2], iCMV[2];
 
-  * (int32_t*)iAMV = INTD32 (iMotionVector[0][     kuiLeftIdx]);
-  * (int32_t*)iBMV = INTD32 (iMotionVector[0][      kuiTopIdx]);
-  * (int32_t*)iCMV = INTD32 (iMotionVector[0][kuiRightTopIdx]);
+  ST32 (iAMV, LD32 (iMotionVector[0][     kuiLeftIdx]));
+  ST32 (iBMV, LD32 (iMotionVector[0][      kuiTopIdx]));
+  ST32 (iCMV, LD32 (iMotionVector[0][kuiRightTopIdx]));
 
   if (REF_NOT_AVAIL == iDiagonalRef) {
     iDiagonalRef = kiLeftTopRef;
-    * (int32_t*)iCMV = INTD32 (iMotionVector[0][kuiLeftTopIdx]);
+    ST32 (iCMV, LD32 (iMotionVector[0][kuiLeftTopIdx]));
   }
 
   iMatchRef = (iRef == kiLeftRef) + (iRef == kiTopRef) + (iRef == iDiagonalRef);