[x265] [PATCH] avoid warning on variant correction in weight_sp_c()
Min Chen
chenm003 at 163.com
Mon Jan 19 18:19:31 CET 2015
# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1421687963 -28800
# Node ID 34a64bf50c17e63edbcf84fc29c654920034cded
# Parent 4f8b7cc9d51e1102b2d2b27d5a19f97576ddde63
avoid warning on variant correction in weight_sp_c()
---
source/common/pixel.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff -r 4f8b7cc9d51e -r 34a64bf50c17 source/common/pixel.cpp
--- a/source/common/pixel.cpp Mon Jan 19 18:21:50 2015 +0800
+++ b/source/common/pixel.cpp Tue Jan 20 01:19:23 2015 +0800
@@ -520,7 +520,9 @@
{
int x, y;
+#if CHECKED_BUILD || _DEBUG
const int correction = (IF_INTERNAL_PREC - X265_DEPTH);
+#endif
X265_CHECK(!((w0 << 6) > 32767), "w0 using more than 16 bits, asm output will mismatch\n");
X265_CHECK(!(round > 32767), "round using more than 16 bits, asm output will mismatch\n");
More information about the x265-devel
mailing list