[x265] [PATCH] sao.cpp: fixed compiler warnings

praveen at multicorewareinc.com praveen at multicorewareinc.com
Mon Jan 5 06:38:19 CET 2015


# HG changeset patch
# User Praveen Tiwari
# Date 1420435621 -19800
# Node ID ede9aa255489fe410aced728880765a7b975b10e
# Parent  f255e8d06423231cb8c58ab5d3b10de7fb27b424
sao.cpp: fixed compiler warnings

diff -r f255e8d06423 -r ede9aa255489 source/encoder/sao.cpp
--- a/source/encoder/sao.cpp	Fri Jan 02 18:22:38 2015 +0530
+++ b/source/encoder/sao.cpp	Mon Jan 05 10:57:01 2015 +0530
@@ -365,21 +365,21 @@
 
         if (!(ctuWidth & 15))
         {
-            pixel firstPxl, lastPxl;
+            int8_t firstSign, lastSign;
 
             if (!lpelx)
-                firstPxl = upBuff1[0];
+                firstSign = upBuff1[0];
 
             if (rpelx == picWidth)
-                lastPxl = upBuff1[ctuWidth - 1];
+                lastSign = upBuff1[ctuWidth - 1];
 
             primitives.sign(upBuff1, rec, &tmpU[- 1], ctuWidth);
 
             if (!lpelx)
-                upBuff1[0] = firstPxl;
+                upBuff1[0] = firstSign;
 
             if (rpelx == picWidth)
-                upBuff1[ctuWidth - 1] = lastPxl;
+                upBuff1[ctuWidth - 1] = lastSign;
         }
         else
         {


More information about the x265-devel mailing list