Fix potential invalid partition size use
authorJingning Han <jingning@google.com>
Fri, 28 Feb 2014 17:15:36 +0000 (09:15 -0800)
committerJingning Han <jingning@google.com>
Fri, 28 Feb 2014 18:50:34 +0000 (10:50 -0800)
commitbf5e9221d69eddbd77ca336c82a14a05c08e9ab8
tree9b44d036a3500dfe0d090e65b15fe93a936d8e0c
parentedcbbf2ee3a0acbe5162655bc128b3ac5340729a
Fix potential invalid partition size use

For blocks at frame boundary, the selected block size sometimes needs
to be smaller than that was first given. This commit forces such block
size change only between square blocks, so as to avoid the potential
use case containing 32x16 + 16x8 + 16x8, for 1080p sequences.

Local test suggested no visible coding speed difference. Borg test
reveals no difference in terms of compression performance.

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