ref: cfb204eaf7b8f6c20c7c8a207e6fae89d7337a73
parent: 4e6827a013084ce3856af969c673e0237ffd5537
parent: 1d8277f8e8e0866cd21b95674717c2e467f4ffd9
author: John Koleszar <jkoleszar@google.com>
date: Mon Aug 2 05:35:05 EDT 2010
Merge "Issue 150: Fixing linker warning in extend.c."
--- a/vp8/common/extend.c
+++ b/vp8/common/extend.c
@@ -39,7 +39,10 @@
for (i = 0; i < h - 0 + 1; i++)
{
- vpx_memset(dest_ptr1, src_ptr1[0], el);
+ // Some linkers will complain if we call vpx_memset with el set to a
+ // constant 0.
+ if (el)
+ vpx_memset(dest_ptr1, src_ptr1[0], el);
vpx_memset(dest_ptr2, src_ptr2[0], er);
src_ptr1 += sp;
src_ptr2 += sp;