From: John Koleszar Date: Fri, 15 Apr 2011 12:44:39 +0000 (-0400) Subject: Fix off-by-one in copy_and_extend_plane X-Git-Tag: 1.0_branch~539 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3399291ad0350e57cdce62369cb9bf196ec1ebb;p=profile%2Fivi%2Flibvpx.git Fix off-by-one in copy_and_extend_plane Should only copy h lines, not h+1. Change-Id: I802a85686635900459c6dc79596189033e5298d8 --- diff --git a/vp8/common/extend.c b/vp8/common/extend.c index 5b8b4e4..036bafc 100644 --- a/vp8/common/extend.c +++ b/vp8/common/extend.c @@ -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);