[x265] [PATCH] Initialized variable to prevent compiler warning

dtyx265 at gmail.com dtyx265 at gmail.com
Wed Aug 13 18:51:24 CEST 2014


# HG changeset patch
# User David T Yuen <dtyx265 at gmail.com>
# Date 1407948618 25200
# Node ID b4bbfeeb31875c853c3947fc096270127bfe7336
# Parent  d43e9a6a7cced5b60284c25bd987c55c522c1212
Initialized variable to prevent compiler warning

diff -r d43e9a6a7cce -r b4bbfeeb3187 source/encoder/slicetype.cpp
--- a/source/encoder/slicetype.cpp	Wed Aug 13 00:19:31 2014 -0500
+++ b/source/encoder/slicetype.cpp	Wed Aug 13 09:50:18 2014 -0700
@@ -1680,7 +1680,7 @@
         // generate 35 intra predictions into m_predictions
         pixelcmp_t satd = primitives.satd[partitionFromLog2Size(X265_LOWRES_CU_BITS)];
         int icost = m_me.COST_MAX, cost, highcost, lowcost, acost = m_me.COST_MAX;
-        uint32_t  lowmode, mode;
+        uint32_t  mode;
         primitives.intra_pred[sizeIdx][DC_IDX](m_predictions, cuSize, left0, above0, 0, (cuSize <= 16));
         cost = satd(m_me.fenc, FENC_STRIDE, m_predictions, cuSize);
         if (cost < icost)
@@ -1699,6 +1699,7 @@
         // fast-intra angle search
         if (m_param->bEnableFastIntra)
         {
+            uint32_t lowmode = 4;
             for (mode = 4; mode < 35; mode += 5)
             {
                 if (mode < 18)


More information about the x265-devel mailing list