]> granicus.if.org Git - libvpx/commitdiff
Issue 150: Fixing linker warning in extend.c.
authorJustin Lebar <justin.lebar@gmail.com>
Fri, 23 Jul 2010 23:42:25 +0000 (16:42 -0700)
committerJustin Lebar <justin.lebar@gmail.com>
Fri, 23 Jul 2010 23:42:25 +0000 (16:42 -0700)
vp8/common/extend.c

index a16ff2bad6bf200dadd645c022de60c4f0d2320f..0608a13b42d2ff0d17516aa2cfdd059db0edd08d 100644 (file)
@@ -39,7 +39,10 @@ static void extend_plane_borders
 
     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;