Add validation of UV partition size
authorYaowu Xu <yaowu@google.com>
Fri, 24 Apr 2015 15:22:13 +0000 (08:22 -0700)
committerYaowu Xu <yaowu@google.com>
Fri, 24 Apr 2015 19:34:18 +0000 (12:34 -0700)
commitb3e411e48164cda6913b659128549858b6f69ba3
tree3ba5f5877008783e144e7a3b7d2e63829239c46f
parent4feae6791c0da9535a1c4c347e473ebc996c9d39
Add validation of UV partition size

For color sampling format other than 420, valid partion size in Y may
not work for UV plane. This commit adds validation of UV partition
size before select the partition choice.

This fixes a crash for real time encoding of 422 input.

Change-Id: I1fe3282accfd58625e8b5e6a4c8d2c84199751b6
vp9/encoder/vp9_encodeframe.c