Fix bug in extend_frame chroma extended too far
authorAdrian Grange <agrange@google.com>
Fri, 22 Nov 2013 01:19:04 +0000 (17:19 -0800)
committerAdrian Grange <agrange@google.com>
Fri, 22 Nov 2013 17:55:10 +0000 (09:55 -0800)
commitd427fab587842abee67f0f29c1aa8a904fd0a2b0
tree83f4ec753a61c01423a0aae04830735536754e21
parenta64a192c90e45aafe77f02c84930a9495ac04c3b
Fix bug in extend_frame chroma extended too far

This fixes issue 667.

In the case where the frame was an odd number of pixels
wide or high, the border was being extended by one col
or row too far.

The calculation of color plane dimensions was modified
to use those already computed at the time the frame
buffer was allocated.

Also freed the temporary scaling buffer in vpxdec to
prevent a memory leak.

Change-Id: Ied04bdcdfd77469731408c05da205db1a6f89bf5
vpx_scale/generic/yv12extend.c
vpxdec.c