[x265] [PATCH 2 of 6] testbench: fix bug on seed 0x55EFB6F4, the numNonZero can't be Zero

Deepthi Nandakumar deepthi at multicorewareinc.com
Wed Sep 23 09:23:22 CEST 2015


Patch applies on the wrong lines. Can you resend?

On Thu, Sep 10, 2015 at 12:33 AM, Min Chen <chenm003 at 163.com> wrote:

> # HG changeset patch
> # User Min Chen <chenm003 at 163.com>
> # Date 1441837037 18000
> # Node ID c72ca72fe00acfb81ed43e8d9af826f9cb77b4fe
> # Parent  92ca9b310d99c8fa99142cde4577d6de845aa65e
> testbench: fix bug on seed 0x55EFB6F4, the numNonZero can't be Zero
> ---
>  source/test/pixelharness.cpp |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff -r 92ca9b310d99 -r c72ca72fe00a source/test/pixelharness.cpp
> --- a/source/test/pixelharness.cpp      Wed Sep 09 17:02:32 2015 -0500
> +++ b/source/test/pixelharness.cpp      Wed Sep 09 17:17:17 2015 -0500
> @@ -2,6 +2,7 @@
>   * Copyright (C) 2013 x265 project
>   *
>   * Authors: Steve Borho <steve at borho.org>
> + *          Min Chen <chenm003 at 163.com>
>   *
>   * This program is free software; you can redistribute it and/or modify
>   * it under the terms of the GNU General Public License as published by
> @@ -1788,6 +1789,11 @@
>                  numNonZero++;
>              }
>          }
> +        if (numNonZero == 0)
> +        {
> +            numNonZero = 1;
> +            absCoeff[0] = 1;
> +        }
>
>          int ref_sum = ref(absCoeff, (intptr_t)numNonZero, ref_baseCtx,
> (intptr_t)rand_offset);
>          int opt_sum = (int)checked(opt, absCoeff, (intptr_t)numNonZero,
> opt_baseCtx, (intptr_t)rand_offset);
>
> _______________________________________________
> 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/20150923/39c53021/attachment.html>


More information about the x265-devel mailing list