[x265] [PATCH] rc: fix inconsistent output with qg-size 8

gopi.satykrishna at multicorewareinc.com gopi.satykrishna at multicorewareinc.com
Mon Sep 19 14:22:33 CEST 2016


# HG changeset patch
# User Gopi Satykrishna Akisetty <gopi.satykrishna at multicorewareinc.com>
# Date 1474287415 -19800
#      Mon Sep 19 17:46:55 2016 +0530
# Node ID a6f9d094b95480371bea13152296dc69790af8d2
# Parent  dc4893950b273b1899c444f14f2a1c3522f614bb
rc: fix inconsistent output with qg-size 8

diff -r dc4893950b27 -r a6f9d094b954 source/common/lowres.cpp
--- a/source/common/lowres.cpp	Wed Sep 14 16:19:20 2016 +0530
+++ b/source/common/lowres.cpp	Mon Sep 19 17:46:55 2016 +0530
@@ -56,12 +56,12 @@
 
     if (bAQEnabled)
     {
-        CHECKED_MALLOC(qpAqOffset, double, cuCountFullRes);
-        CHECKED_MALLOC(invQscaleFactor, int, cuCountFullRes);
-        CHECKED_MALLOC(qpCuTreeOffset, double, cuCountFullRes);
-        CHECKED_MALLOC(blockVariance, uint32_t, cuCountFullRes);
+        CHECKED_MALLOC_ZERO(qpAqOffset, double, cuCountFullRes);
+        CHECKED_MALLOC_ZERO(invQscaleFactor, int, cuCountFullRes);
+        CHECKED_MALLOC_ZERO(qpCuTreeOffset, double, cuCountFullRes);
+        CHECKED_MALLOC_ZERO(blockVariance, uint32_t, cuCountFullRes);
         if (qgSize == 8)
-            CHECKED_MALLOC(invQscaleFactor8x8, int, cuCount);
+            CHECKED_MALLOC_ZERO(invQscaleFactor8x8, int, cuCount);
     }
     CHECKED_MALLOC(propagateCost, uint16_t, cuCount);
 


More information about the x265-devel mailing list