[x265] fix typo

Satoshi Nakagawa nakagawa424 at oki.com
Fri Nov 7 09:28:57 CET 2014


# HG changeset patch
# User Satoshi Nakagawa <nakagawa424 at oki.com>
# Date 1415348521 -32400
#      Fri Nov 07 17:22:01 2014 +0900
# Node ID ddc90f87dbe7dd704e9f0b0fe15c4752f9156c16
# Parent  bc4f3dab51db5fb0a164fe0667f1556e2111d3c2
fix typo

diff -r bc4f3dab51db -r ddc90f87dbe7 source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp	Fri Nov 07 11:43:15 2014 +0900
+++ b/source/encoder/analysis.cpp	Fri Nov 07 17:22:01 2014 +0900
@@ -1739,7 +1739,7 @@
     }
 
     // give 60% weight to all CU's and 40% weight to neighbour CU's
-    if (neighCost + cuCount)
+    if (neighCount + cuCount)
     {
         uint64_t avgCost = ((3 * cuCost) + (2 * neighCost)) / ((3 * cuCount) + (2 * neighCount));
         uint64_t curCost = m_param->rdLevel > 1 ? bestMode.rdCost : bestMode.sa8dCost;


More information about the x265-devel mailing list