diff options
author | Deb Mukherjee <debargha@google.com> | 2012-03-22 17:42:41 -0700 |
---|---|---|
committer | Deb Mukherjee <debargha@google.com> | 2012-03-22 17:42:41 -0700 |
commit | 06dc2f61665015c1ed36b5f78813aad1bc06b927 (patch) | |
tree | 3b5ff1e8a03179a524605424505a7a6d287f4082 | |
parent | 66ba79f5fb8ec3f729903f8a5edcfef93a663ce6 (diff) | |
download | libvpx-06dc2f61665015c1ed36b5f78813aad1bc06b927.tar.gz |
Initialize postproc buffer to resolve valgrind warnings
Change-Id: I9a7d40b0eac7200796dbe62e75776b2eb77dfdf6
-rw-r--r-- | vp8/common/alloccommon.c | 2 | ||||
-rw-r--r-- | vp8/common/postproc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vp8/common/alloccommon.c b/vp8/common/alloccommon.c index a6ccfd272..919ef499a 100644 --- a/vp8/common/alloccommon.c +++ b/vp8/common/alloccommon.c @@ -106,8 +106,8 @@ int vp8_alloc_frame_buffers(VP8_COMMON *oci, int width, int height) } 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; diff --git a/vp8/common/postproc.c b/vp8/common/postproc.c index 225c87268..50ed54309 100644 --- a/vp8/common/postproc.c +++ b/vp8/common/postproc.c @@ -737,7 +737,7 @@ int vp8_post_proc_frame(VP8_COMMON *oci, YV12_BUFFER_CONFIG *dest, vp8_ppflags_t // 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); } } |