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

2014-09-09 Thread praveen
# 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;
___
x265-devel mailing list
x265-devel@videolan.org
https://mailman.videolan.org/listinfo/x265-devel


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

2014-09-09 Thread Deepthi Nandakumar
Thanks, Praveen - an alternative patch pushed to take care of this (silly)
warning.


On Tue, Sep 9, 2014 at 11:29 AM, prav...@multicorewareinc.com wrote:

 # 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;
 ___
 x265-devel mailing list
 x265-devel@videolan.org
 https://mailman.videolan.org/listinfo/x265-devel

___
x265-devel mailing list
x265-devel@videolan.org
https://mailman.videolan.org/listinfo/x265-devel