[x265] fix bug in 522baf03fbbd

Satoshi Nakagawa nakagawa424 at oki.com
Fri Nov 7 11:31:24 CET 2014


# HG changeset patch
# User Satoshi Nakagawa <nakagawa424 at oki.com>
# Date 1415356167 -32400
#      Fri Nov 07 19:29:27 2014 +0900
# Node ID cdb4f8e542d3d37710464ecc8279469024d24584
# Parent  4f034e3adef8d52853b88c6631a905dd96713d77
fix bug in 522baf03fbbd

diff -r 4f034e3adef8 -r cdb4f8e542d3 source/encoder/search.cpp
--- a/source/encoder/search.cpp	Fri Nov 07 17:22:01 2014 +0900
+++ b/source/encoder/search.cpp	Fri Nov 07 19:29:27 2014 +0900
@@ -2857,10 +2857,10 @@
                 {
                     cbfFlag[TEXT_LUMA][0] = 0;
                     singleBits[TEXT_LUMA][0] = 0;
+                    primitives.blockfill_s[partSize](curResiY, strideResiY, 0);
 #if CHECKED_BUILD || _DEBUG
                     uint32_t numCoeffY = 1 << (log2TrSize << 1);
                     memset(coeffCurY, 0, sizeof(coeff_t) * numCoeffY);
-                    primitives.blockfill_s[partSize](curResiY, strideResiY, 0);
 #endif
                     if (checkTransformSkipY)
                         minCost[TEXT_LUMA][0] = nullCostY;
@@ -2956,10 +2956,10 @@
                             {
                                 cbfFlag[chromaId][tuIterator.section] = 0;
                                 singleBits[chromaId][tuIterator.section] = 0;
+                                primitives.blockfill_s[partSizeC](curResiC, strideResiC, 0);
 #if CHECKED_BUILD || _DEBUG
                                 uint32_t numCoeffC = 1 << (log2TrSizeC << 1);
                                 memset(coeffCurC + subTUOffset, 0, sizeof(coeff_t) * numCoeffC);
-                                primitives.blockfill_s[partSizeC](curResiC, strideResiC, 0);
 #endif
                                 if (checkTransformSkipC)
                                     minCost[chromaId][tuIterator.section] = nullCostC;


More information about the x265-devel mailing list