Fix off-by-one in copy_and_extend_plane
authorJohn Koleszar <jkoleszar@google.com>
Fri, 15 Apr 2011 12:44:39 +0000 (08:44 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Fri, 15 Apr 2011 12:44:39 +0000 (08:44 -0400)
Should only copy h lines, not h+1.

Change-Id: I802a85686635900459c6dc79596189033e5298d8

vp8/common/extend.c

index 5b8b4e4..036bafc 100644 (file)
@@ -38,7 +38,7 @@ static void copy_and_extend_plane
     dest_ptr1 = d - el;
     dest_ptr2 = d + w;
 
-    for (i = 0; i < h - 0 + 1; i++)
+    for (i = 0; i < h; i++)
     {
         vpx_memset(dest_ptr1, src_ptr1[0], el);
         vpx_memcpy(dest_ptr1 + el, src_ptr1, w);