From 24196dd9873df87b5c2dd1de509dc44455741ea9 Mon Sep 17 00:00:00 2001
From: James Berry <jamesberry@google.com>
Date: Fri, 16 Dec 2011 17:43:55 -0500
Subject: [PATCH] fix: make sure ss_err is large enough

increase size of ss_err by one to make
sure there is room for 64 elements.

Change-Id: I355cb8c499aa7da3b9675f2326a8d25a74bb88d2
---
 vp8/encoder/picklpf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vp8/encoder/picklpf.c b/vp8/encoder/picklpf.c
index 8fa4f1e5b6..530e27b6aa 100644
--- a/vp8/encoder/picklpf.c
+++ b/vp8/encoder/picklpf.c
@@ -289,7 +289,7 @@ void vp8cx_pick_filter_level(YV12_BUFFER_CONFIG *sd, VP8_COMP *cpi)
 
     int Bias = 0;                       // Bias against raising loop filter and in favor of lowering it
 
-    int ss_err[MAX_LOOP_FILTER];
+    int ss_err[MAX_LOOP_FILTER + 1];
 
     YV12_BUFFER_CONFIG * saved_frame = cm->frame_to_show;
 
-- 
GitLab