Commit a3399291 authored by John Koleszar's avatar John Koleszar
Browse files

Fix off-by-one in copy_and_extend_plane

Should only copy h lines, not h+1.

Change-Id: I802a85686635900459c6dc79596189033e5298d8
parent 63f15987
...@@ -38,7 +38,7 @@ static void copy_and_extend_plane ...@@ -38,7 +38,7 @@ static void copy_and_extend_plane
dest_ptr1 = d - el; dest_ptr1 = d - el;
dest_ptr2 = d + w; 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_memset(dest_ptr1, src_ptr1[0], el);
vpx_memcpy(dest_ptr1 + el, src_ptr1, w); vpx_memcpy(dest_ptr1 + el, src_ptr1, w);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment