shithub: libvpx

Download patch

ref: 06dc2f61665015c1ed36b5f78813aad1bc06b927
parent: 66ba79f5fb8ec3f729903f8a5edcfef93a663ce6
author: Deb Mukherjee <debargha@google.com>
date: Thu Mar 22 13:42:41 EDT 2012

Initialize postproc buffer to resolve valgrind warnings

Change-Id: I9a7d40b0eac7200796dbe62e75776b2eb77dfdf6

--- a/vp8/common/alloccommon.c
+++ b/vp8/common/alloccommon.c
@@ -106,8 +106,8 @@
     }
 
     oci->post_proc_buffer_int_used = 0;
-
     vpx_memset(&oci->postproc_state, 0, sizeof(oci->postproc_state));
+    vpx_memset((&oci->post_proc_buffer)->buffer_alloc,128,(&oci->post_proc_buffer)->frame_size);
 #endif
 
     oci->mb_rows = height >> 4;
--- a/vp8/common/postproc.c
+++ b/vp8/common/postproc.c
@@ -737,7 +737,7 @@
 
             // insure that postproc is set to all 0's so that post proc
             // doesn't pull random data in from edge
-            vpx_memset((&oci->post_proc_buffer_int)->buffer_alloc,126,(&oci->post_proc_buffer)->frame_size);
+            vpx_memset((&oci->post_proc_buffer_int)->buffer_alloc,128,(&oci->post_proc_buffer)->frame_size);
 
         }
     }