[x265] [PATCH] avoid VS2008 ambiguous build error
Min Chen
chenm003 at 163.com
Fri Jul 4 00:12:56 CEST 2014
# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1404425565 25200
# Node ID 8a8a7f801ddcf59841300f469b9556603f38e40a
# Parent 56857152b0ae717c5ed345f675cf1b5823eee485
avoid VS2008 ambiguous build error
diff -r 56857152b0ae -r 8a8a7f801ddc source/encoder/frameencoder.cpp
--- a/source/encoder/frameencoder.cpp Thu Jul 03 15:12:13 2014 -0700
+++ b/source/encoder/frameencoder.cpp Thu Jul 03 15:12:45 2014 -0700
@@ -949,7 +949,7 @@
// copy no. of intra, inter Cu cnt per row into frame stats for 2 pass
if (m_param->rc.bStatWrite)
{
- double scale = pow((double)2, g_maxCUSize / 16);
+ double scale = (double)(1 << (g_maxCUSize / 16));
for (uint32_t part = 0; part < g_maxCUDepth ; part++, scale /= 4)
{
curRow.m_iCuCnt += scale * tld.m_cuCoder.m_log->qTreeIntraCnt[part];
More information about the x265-devel
mailing list