Fix potential invalid partition size use
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

kim42083/webm.libvpx,charup/https---github.com-webmproject-libvpx-,altogother/webm.libvpx,kim42083/webm.libvpx,jdm/libvpx,mbebenita/aom,thdav/aom,kleopatra999/webm.libvpx,ittiamvpx/libvpx-1,VTCSecureLLC/libvpx,n4t/libvpx,Acidburn0zzz/webm.libvpx,Maria1099/webm.libvpx,luctrudeau/aom,Topopiccione/libvpx,goodleixiao/vpx,stewnorriss/libvpx,jmvalin/aom,reimaginemedia/webm.libvpx,Topopiccione/libvpx,matanbs/vp982,Distrotech/libvpx,ShiftMediaProject/libvpx,altogother/webm.libvpx,Topopiccione/libvpx,kleopatra999/webm.libvpx,felipebetancur/libvpx,jmvalin/aom,matanbs/webm.libvpx,ShiftMediaProject/libvpx,jdm/libvpx,shyamalschandra/libvpx,charup/https---github.com-webmproject-libvpx-,goodleixiao/vpx,matanbs/vp982,mbebenita/aom,mwgoldsmith/libvpx,ittiamvpx/libvpx,thdav/aom,openpeer/libvpx_new,felipebetancur/libvpx,shacklettbp/aom,matanbs/webm.libvpx,shacklettbp/aom,WebRTC-Labs/libvpx,Suvarna1488/webm.libvpx,mbebenita/aom,hsueceumd/test_hui,hsueceumd/test_hui,Maria1099/webm.libvpx,liqianggao/libvpx,GrokImageCompression/aom,webmproject/libvpx,openpeer/libvpx_new,Laknot/libvpx,running770/libvpx,luctrudeau/aom,Topopiccione/libvpx,Laknot/libvpx,shareefalis/libvpx,matanbs/vp982,gshORTON/webm.libvpx,stewnorriss/libvpx,jdm/libvpx,charup/https---github.com-webmproject-libvpx-,zofuthan/libvpx,n4t/libvpx,kleopatra999/webm.libvpx,kleopatra999/webm.libvpx,mbebenita/aom,abwiz0086/webm.libvpx,Acidburn0zzz/webm.libvpx,kalli123/webm.libvpx,Suvarna1488/webm.libvpx,stewnorriss/libvpx,shacklettbp/aom,luctrudeau/aom,matanbs/webm.libvpx,mwgoldsmith/libvpx,Maria1099/webm.libvpx,mwgoldsmith/vpx,jmvalin/aom,kim42083/webm.libvpx,luctrudeau/aom,mwgoldsmith/libvpx,ittiamvpx/libvpx,kalli123/webm.libvpx,ittiamvpx/libvpx,jacklicn/webm.libvpx,Topopiccione/libvpx,mbebenita/aom,reimaginemedia/webm.libvpx,reimaginemedia/webm.libvpx,reimaginemedia/webm.libvpx,shyamalschandra/libvpx,shacklettbp/aom,goodleixiao/vpx,liqianggao/libvpx,shacklettbp/aom,ittiamvpx/libvpx,shacklettbp/aom,mbebenita/aom,Suvarna1488/webm.libvpx,Acidburn0zzz/webm.libvpx,hsueceumd/test_hui,zofuthan/libvpx,Acidburn0zzz/webm.libvpx,altogother/webm.libvpx,zofuthan/libvpx,running770/libvpx,Distrotech/libvpx,Laknot/libvpx,jdm/libvpx,matanbs/vp982,matanbs/vp982,Maria1099/webm.libvpx,kalli123/webm.libvpx,lyx2014/libvpx_c,GrokImageCompression/aom,n4t/libvpx,goodleixiao/vpx,zofuthan/libvpx,kim42083/webm.libvpx,luctrudeau/aom,jmvalin/aom,running770/libvpx,Laknot/libvpx,smarter/aom,iniwf/webm.libvpx,jacklicn/webm.libvpx,kalli123/webm.libvpx,zofuthan/libvpx,ittiamvpx/libvpx-1,kleopatra999/webm.libvpx,shyamalschandra/libvpx,jdm/libvpx,matanbs/webm.libvpx,altogother/webm.libvpx,GrokImageCompression/aom,liqianggao/libvpx,VTCSecureLLC/libvpx,stewnorriss/libvpx,WebRTC-Labs/libvpx,pcwalton/libvpx,felipebetancur/libvpx,ittiamvpx/libvpx-1,stewnorriss/libvpx,shareefalis/libvpx,thdav/aom,WebRTC-Labs/libvpx,lyx2014/libvpx_c,hsueceumd/test_hui,gshORTON/webm.libvpx,smarter/aom,hsueceumd/test_hui,GrokImageCompression/aom,liqianggao/libvpx,gshORTON/webm.libvpx,Suvarna1488/webm.libvpx,mwgoldsmith/libvpx,WebRTC-Labs/libvpx,mwgoldsmith/vpx,lyx2014/libvpx_c,mbebenita/aom,openpeer/libvpx_new,goodleixiao/vpx,lyx2014/libvpx_c,lyx2014/libvpx_c,gshORTON/webm.libvpx,abwiz0086/webm.libvpx,matanbs/vp982,thdav/aom,iniwf/webm.libvpx,ShiftMediaProject/libvpx,felipebetancur/libvpx,stewnorriss/libvpx,VTCSecureLLC/libvpx,n4t/libvpx,abwiz0086/webm.libvpx,jmvalin/aom,smarter/aom,webmproject/libvpx,mwgoldsmith/libvpx,felipebetancur/libvpx,ittiamvpx/libvpx-1,iniwf/webm.libvpx,charup/https---github.com-webmproject-libvpx-,matanbs/webm.libvpx,matanbs/webm.libvpx,smarter/aom,iniwf/webm.libvpx,mbebenita/aom,reimaginemedia/webm.libvpx,mwgoldsmith/vpx,n4t/libvpx,Maria1099/webm.libvpx,WebRTC-Labs/libvpx,shyamalschandra/libvpx,webmproject/libvpx,VTCSecureLLC/libvpx,luctrudeau/aom,Distrotech/libvpx,pcwalton/libvpx,thdav/aom,VTCSecureLLC/libvpx,Distrotech/libvpx,smarter/aom,mwgoldsmith/libvpx,zofuthan/libvpx,Topopiccione/libvpx,Acidburn0zzz/webm.libvpx,pcwalton/libvpx,lyx2014/libvpx_c,shyamalschandra/libvpx,running770/libvpx,hsueceumd/test_hui,ittiamvpx/libvpx-1,ShiftMediaProject/libvpx,pcwalton/libvpx,charup/https---github.com-webmproject-libvpx-,altogother/webm.libvpx,mwgoldsmith/vpx,shareefalis/libvpx,shareefalis/libvpx,abwiz0086/webm.libvpx,gshORTON/webm.libvpx,Laknot/libvpx,running770/libvpx,VTCSecureLLC/libvpx,kalli123/webm.libvpx,abwiz0086/webm.libvpx,Distrotech/libvpx,webmproject/libvpx,shyamalschandra/libvpx,Laknot/libvpx,jacklicn/webm.libvpx,reimaginemedia/webm.libvpx,abwiz0086/webm.libvpx,kalli123/webm.libvpx,openpeer/libvpx_new,charup/https---github.com-webmproject-libvpx-,GrokImageCompression/aom,matanbs/vp982,Maria1099/webm.libvpx,jdm/libvpx,ittiamvpx/libvpx-1,altogother/webm.libvpx,ittiamvpx/libvpx,pcwalton/libvpx,iniwf/webm.libvpx,iniwf/webm.libvpx,shareefalis/libvpx,openpeer/libvpx_new,jacklicn/webm.libvpx,mwgoldsmith/vpx,webmproject/libvpx,goodleixiao/vpx,smarter/aom,kleopatra999/webm.libvpx,ittiamvpx/libvpx,pcwalton/libvpx,thdav/aom,shareefalis/libvpx,Suvarna1488/webm.libvpx,felipebetancur/libvpx,liqianggao/libvpx,kim42083/webm.libvpx,mbebenita/aom,GrokImageCompression/aom,jacklicn/webm.libvpx,jmvalin/aom,Distrotech/libvpx,gshORTON/webm.libvpx,kim42083/webm.libvpx,openpeer/libvpx_new,webmproject/libvpx,mwgoldsmith/vpx,running770/libvpx,ShiftMediaProject/libvpx,Acidburn0zzz/webm.libvpx,jacklicn/webm.libvpx,liqianggao/libvpx,Suvarna1488/webm.libvpx