[x265] [PATCH 1 of 5] testbench: fix bug on seed 0x55EFB6F4, the numNonZero can't be Zero
Deepthi Nandakumar
deepthi at multicorewareinc.com
Fri Sep 25 13:08:03 CEST 2015
I accidentally pushed this to the stable branch, which was wrong - since
the checkC1C2 primitive didnt exist on the stable branch, and the tip was
broken for a few hours.
Both stable and default tips have been fixed now.
On Fri, Sep 25, 2015 at 5:45 AM, Min Chen <chenm003 at 163.com> wrote:
> # HG changeset patch
> # User Min Chen <chenm003 at 163.com>
> # Date 1443138808 18000
> # Node ID 58128ae6e4d8ec857a52537c75602421d67ff549
> # Parent 975352b2c0223b9139aad233b43eaf2113ac8167
> 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 975352b2c022 -r 58128ae6e4d8 source/test/pixelharness.cpp
> --- a/source/test/pixelharness.cpp Wed Sep 23 16:19:48 2015 +0530
> +++ b/source/test/pixelharness.cpp Thu Sep 24 18:53:28 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/20150925/14be3ec1/attachment.html>
More information about the x265-devel
mailing list