shithub: openh264

Download patch

ref: 0185a07e7a7acd5a7425d56917871f4a6fee9a7f
parent: cf33d7031e3c823791ccd1dbf4eef20ada1039a6
parent: 2af19fa6549d132bf12a59c92fbf2ac1ef8dfa79
author: sijchen <[email protected]>
date: Thu May 14 05:56:30 EDT 2015

Merge pull request #1942 from mstorsjo/fix-longlong-consts

Add a LL suffix to 64 bit integer literals

--- a/codec/decoder/core/src/get_intra_predictor.cpp
+++ b/codec/decoder/core/src/get_intra_predictor.cpp
@@ -428,7 +428,7 @@
 
   // 8-90
   for (i = 0; i < 8; i++) {
-    uiLeft = 0x0101010101010101U * uiPixelFilterL[i];
+    uiLeft = 0x0101010101010101ULL * uiPixelFilterL[i];
     ST64A8 (pPred + iStride[i], uiLeft);
   }
 }
@@ -464,7 +464,7 @@
   }
 
   const uint8_t kuiMean = ((uiTotal + 8) >> 4);
-  const uint64_t kuiMean64 = 0x0101010101010101U * kuiMean;
+  const uint64_t kuiMean64 = 0x0101010101010101ULL * kuiMean;
 
   for (i = 0; i < 8; i++) {
     ST64A8 (pPred + iStride[i], kuiMean64);
@@ -495,7 +495,7 @@
   }
 
   const uint8_t kuiMean = ((uiTotal + 4) >> 3);
-  const uint64_t kuiMean64 = 0x0101010101010101U * kuiMean;
+  const uint64_t kuiMean64 = 0x0101010101010101ULL * kuiMean;
 
   for (i = 0; i < 8; i++) {
     ST64A8 (pPred + iStride[i], kuiMean64);
@@ -526,7 +526,7 @@
   }
 
   const uint8_t kuiMean = ((uiTotal + 4) >> 3);
-  const uint64_t kuiMean64 = 0x0101010101010101U * kuiMean;
+  const uint64_t kuiMean64 = 0x0101010101010101ULL * kuiMean;
 
   for (i = 0; i < 8; i++) {
     ST64A8 (pPred + iStride[i], kuiMean64);
@@ -535,7 +535,7 @@
 
 void WelsI8x8LumaPredDcNA_c (uint8_t* pPred, const int32_t kiStride, bool bTLAvail, bool bTRAvail) {
   // for normal 8 bit depth, 8-94
-  const uint64_t kuiDC64		= 0x8080808080808080U;
+  const uint64_t kuiDC64		= 0x8080808080808080ULL;
 
   int32_t iStride[8];
   int32_t i;