<div dir="ltr"><div>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. <br><br></div>Both stable and default tips have been fixed now.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 25, 2015 at 5:45 AM, Min Chen <span dir="ltr"><<a href="mailto:chenm003@163.com" target="_blank">chenm003@163.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Min Chen <<a href="mailto:chenm003@163.com">chenm003@163.com</a>><br>
# Date 1443138808 18000<br>
# Node ID 58128ae6e4d8ec857a52537c75602421d67ff549<br>
# Parent  975352b2c0223b9139aad233b43eaf2113ac8167<br>
testbench: fix bug on seed 0x55EFB6F4, the numNonZero can't be Zero<br>
---<br>
 source/test/pixelharness.cpp |    6 ++++++<br>
 1 files changed, 6 insertions(+), 0 deletions(-)<br>
<br>
diff -r 975352b2c022 -r 58128ae6e4d8 source/test/pixelharness.cpp<br>
--- a/source/test/pixelharness.cpp      Wed Sep 23 16:19:48 2015 +0530<br>
+++ b/source/test/pixelharness.cpp      Thu Sep 24 18:53:28 2015 -0500<br>
@@ -2,6 +2,7 @@<br>
  * Copyright (C) 2013 x265 project<br>
  *<br>
  * Authors: Steve Borho <<a href="mailto:steve@borho.org">steve@borho.org</a>><br>
+ *          Min Chen <<a href="mailto:chenm003@163.com">chenm003@163.com</a>><br>
  *<br>
  * This program is free software; you can redistribute it and/or modify<br>
  * it under the terms of the GNU General Public License as published by<br>
@@ -1788,6 +1789,11 @@<br>
                 numNonZero++;<br>
             }<br>
         }<br>
+        if (numNonZero == 0)<br>
+        {<br>
+            numNonZero = 1;<br>
+            absCoeff[0] = 1;<br>
+        }<br>
<br>
         int ref_sum = ref(absCoeff, (intptr_t)numNonZero, ref_baseCtx, (intptr_t)rand_offset);<br>
         int opt_sum = (int)checked(opt, absCoeff, (intptr_t)numNonZero, opt_baseCtx, (intptr_t)rand_offset);<br>
<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div><br></div>