[x265] [PATCH] Bug fix in luma_hps C primitive

nabajit at multicorewareinc.com nabajit at multicorewareinc.com
Tue Dec 10 07:45:55 CET 2013


# HG changeset patch
# User Nabajit Deka
# Date 1386657936 -19800
#      Tue Dec 10 12:15:36 2013 +0530
# Node ID eba68a2eedb6a13ceea97fde83c39e13e29e7989
# Parent  285a4d8c42a07d4c3a285c657da609801391c4a2
Bug fix in luma_hps C primitive.

diff -r 285a4d8c42a0 -r eba68a2eedb6 source/common/ipfilter.cpp
--- a/source/common/ipfilter.cpp	Mon Dec 09 21:44:11 2013 +0550
+++ b/source/common/ipfilter.cpp	Tue Dec 10 12:15:36 2013 +0530
@@ -305,7 +305,7 @@
                 sum += src[col + 7] * coeff[7];
             }
 
-            int16_t val = (int16_t)(sum + offset) >> shift;
+            int16_t val = (int16_t)((sum + offset) >> shift);
             dst[col] = val;
         }
 


More information about the x265-devel mailing list