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

Deepthi Nandakumar deepthi at multicorewareinc.com
Thu Aug 14 09:25:14 CEST 2014


Thanks, this logical change was pushed on top of a refactor.


On Wed, Aug 13, 2014 at 10:21 PM, <dtyx265 at gmail.com> wrote:

> # 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)
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20140814/7a57a828/attachment.html>


More information about the x265-devel mailing list