Correct the miscalculation in uv dimensions
commit4bca73b609bfe9a5cb86fc25b69c6128d9041504
authorYaowu Xu <yaowu@google.com>
Fri, 6 Feb 2015 20:19:32 +0000 (6 12:19 -0800)
committerYaowu Xu <yaowu@google.com>
Fri, 6 Feb 2015 20:19:32 +0000 (6 12:19 -0800)
tree9ceaf2ab6354ea7cffa82625484b03479d89cc6e
parent519b9141ad15bc06ace824aeb0cce40ffa810406
Correct the miscalculation in uv dimensions

The calculation of required extension used in HBD case was wrong due
to rounding for UV when y dimension is odd. This commit replace the
computation with correct version.

This fixes a crash caused by writting beyond buffer boundary.

Change-Id: Ic7c9afeb7388cd1341ec4974a611dacfb74ac6b6
vpx_scale/generic/yv12extend.c