changeset 4643:1aaa596bb20b stable

lookahead: fix reference initialization for intra prediction buffer size of pAbove/pLeft is height+-1+-width = 2*cusize+-1
author Deepthi Devaki <deepthidevaki@multicorewareinc.com>
date Thu, 24 Oct 2013 14:46:48 +0530
parents b69e4433cc97
children a349dec61168 a54a9fa53063
files source/encoder/slicetype.cpp
diffstat 1 files changed, 3 insertions(+-), 3 deletions(-) [+]
line wrap: on
line diff
--- a/source/encoder/slicetype.cpp	Thu Oct 24 17:34:46 2013 +0530
+++ b/source/encoder/slicetype.cpp	Thu Oct 24 14:46:48 2013 +0530
@@ -421,10 +421,10 @@ void LookaheadRow::estimateCUCost(int cu
         // filtering with [1 2 1]
         // assume getUseStrongIntraSmoothing() is disabled
         pAbove1[0] = pAbove0[0];
-        pAbove1[2 * cuSize - 1] = pAbove0[2 * cuSize - 1];
+        pAbove1[2 * cuSize] = pAbove0[2 * cuSize];
         pLeft1[0] = pLeft0[0];
-        pLeft1[2 * cuSize - 1] = pLeft0[2 * cuSize - 1];
-        for (int i = 1; i < 2 * cuSize - 1; i++)
+        pLeft1[2 * cuSize] = pLeft0[2 * cuSize];
+        for (int i = 1; i < 2 * cuSize; i++)
         {
             pAbove1[i] = (pAbove0[i - 1] + 2 * pAbove0[i] + pAbove0[i + 1] + 2) >> 2;
             pLeft1[i] = (pLeft0[i - 1] + 2 * pLeft0[i] + pLeft0[i + 1] + 2) >> 2;