[x265] [PATCH] search.cpp: fixed type conversion warning

praveen at multicorewareinc.com praveen at multicorewareinc.com
Tue Sep 9 07:59:27 CEST 2014


# HG changeset patch
# User Praveen Tiwari
# Date 1410242347 -19800
# Node ID 5026f08bd7d64ab0ee22dcc98dd034030aa65db9
# Parent  7510b362ca969d850d33b10acb37f3e5a6d6b7dc
search.cpp: fixed type conversion warning

diff -r 7510b362ca96 -r 5026f08bd7d6 source/encoder/search.cpp
--- a/source/encoder/search.cpp	Tue Sep 09 11:07:59 2014 +0530
+++ b/source/encoder/search.cpp	Tue Sep 09 11:29:07 2014 +0530
@@ -1443,7 +1443,8 @@
             m_entropyCoder->load(m_rdEntropyCoders[depth][CI_CURR_BEST]);
 
             // determine residual for partition
-            puDistY = puCost = 0;
+            puDistY = 0;
+            puCost  = 0;
             xRecurIntraCodingQT(cu, initTrDepth, partOffset, fencYuv, predYuv, resiYuv, puDistY, true, puCost, depthRange);
 
             // check r-d cost
@@ -1462,7 +1463,8 @@
         m_entropyCoder->load(m_rdEntropyCoders[depth][CI_CURR_BEST]);
 
         // determine residual for partition
-        puDistY = puCost = 0;
+        puDistY = 0;
+        puCost  = 0;
         xRecurIntraCodingQT(cu, initTrDepth, partOffset, fencYuv, predYuv, resiYuv, puDistY, false, puCost, depthRange);
 
         overallDistY += (puCost >= bestPUCost) ? bestPUDistY : puDistY;


More information about the x265-devel mailing list