[x265] [PATCH] fix warnings in sao

Aarthi Priya Thirumalai aarthi at multicorewareinc.com
Fri Jun 24 08:53:16 CEST 2016


# HG changeset patch
# User Aarthi Priya Thirumalai <aarthi at multicorewareinc.com>
# Date 1466746115 -19800
#      Fri Jun 24 10:58:35 2016 +0530
# Node ID 9b1ef8bf4ec4cbeb19cbc15b584893310bbed2e2
# Parent  626fcbac7ffba723dabd3a9f0507c4c80f3e7bc9
fix warnings in sao

diff -r 626fcbac7ffb -r 9b1ef8bf4ec4 source/encoder/sao.cpp
--- a/source/encoder/sao.cpp	Thu Jun 16 12:57:38 2016 +0530
+++ b/source/encoder/sao.cpp	Fri Jun 24 10:58:35 2016 +0530
@@ -1398,7 +1398,7 @@
     while (offset != 0)
     {
         // Calculate the bits required for signalling the offset
-        int rate = (typeIdx == SAO_BO) ? (abs(offset) + 2) : (abs(offset) + 1);
+        uint32_t rate = (typeIdx == SAO_BO) ? (abs(offset) + 2) : (abs(offset) + 1);
         if (abs(offset) == OFFSET_THRESH - 1)
             rate--;
 


More information about the x265-devel mailing list