[x265-commits] [x265] ratecontrol: fix cast of cutree offset, avoids MSVC warning
Steve Borho
steve at borho.org
Thu Jul 3 07:58:12 CEST 2014
details: http://hg.videolan.org/x265/rev/85dce645d0fc
branches:
changeset: 7230:85dce645d0fc
user: Steve Borho <steve at borho.org>
date: Thu Jul 03 00:57:58 2014 -0500
description:
ratecontrol: fix cast of cutree offset, avoids MSVC warning
diffstat:
source/encoder/ratecontrol.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r c41c7a78e46a -r 85dce645d0fc source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp Thu Jul 03 00:50:35 2014 -0500
+++ b/source/encoder/ratecontrol.cpp Thu Jul 03 00:57:58 2014 -0500
@@ -1299,7 +1299,7 @@ int RateControl::rateControlEnd(Frame* p
{
uint8_t sliceType = (uint8_t)rce->sliceType;
for (int i = 0; i < m_ncu; i++)
- m_cuTreeStats.qpBuffer[0][i] = ((uint16_t)pic->m_lowres.qpCuTreeOffset[i]) * 256.0;
+ m_cuTreeStats.qpBuffer[0][i] = (uint16_t)(pic->m_lowres.qpCuTreeOffset[i] * 256.0);
if (fwrite(&sliceType, 1, 1, m_cutreeStatFileOut) < 1)
goto writeFailure;
if (fwrite(m_cuTreeStats.qpBuffer[0], sizeof(uint16_t), m_ncu, m_cutreeStatFileOut) < (size_t)m_ncu)
More information about the x265-commits
mailing list