[x265] [PATCH 3 of 4] force type convert since multiplication result up to 34-bits
Min Chen
chenm003 at 163.com
Mon Apr 27 14:32:11 CEST 2015
# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1430137910 -28800
# Node ID 0232a96d7fb2c07bac98910d5ce9bc207652779d
# Parent c16efc78718f6fe7210e98393f55ad2e7de871c8
force type convert since multiplication result up to 34-bits
---
source/common/quant.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff -r c16efc78718f -r 0232a96d7fb2 source/common/quant.cpp
--- a/source/common/quant.cpp Mon Apr 27 20:31:46 2015 +0800
+++ b/source/common/quant.cpp Mon Apr 27 20:31:50 2015 +0800
@@ -534,7 +534,7 @@
uint32_t trSize = 1 << log2TrSize;
int64_t lambda2 = m_qpParam[ttype].lambda2;
- int64_t psyScale = (m_psyRdoqScale * m_qpParam[ttype].lambda);
+ const int64_t psyScale = ((int64_t)m_psyRdoqScale * m_qpParam[ttype].lambda);
/* unquant constants for measuring distortion. Scaling list quant coefficients have a (1 << 4)
* scale applied that must be removed during unquant. Note that in real dequant there is clipping
More information about the x265-devel
mailing list