fix: make sure ss_err is large enough
authorJames Berry <jamesberry@google.com>
Fri, 16 Dec 2011 22:43:55 +0000 (17:43 -0500)
committerJames Berry <jamesberry@google.com>
Fri, 16 Dec 2011 22:43:55 +0000 (17:43 -0500)
increase size of ss_err by one to make
sure there is room for 64 elements.

Change-Id: I355cb8c499aa7da3b9675f2326a8d25a74bb88d2

vp8/encoder/picklpf.c

index 8fa4f1e..530e27b 100644 (file)
@@ -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;