Correct the miscalculation in uv dimensions
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

stewnorriss/libvpx,smarter/aom,mwgoldsmith/vpx,kleopatra999/webm.libvpx,luctrudeau/aom,liqianggao/libvpx,thdav/aom,kalli123/webm.libvpx,mbebenita/aom,altogother/webm.libvpx,mwgoldsmith/libvpx,thdav/aom,Acidburn0zzz/webm.libvpx,openpeer/libvpx_new,iniwf/webm.libvpx,altogother/webm.libvpx,zofuthan/libvpx,mbebenita/aom,kim42083/webm.libvpx,shacklettbp/aom,matanbs/webm.libvpx,GrokImageCompression/aom,reimaginemedia/webm.libvpx,openpeer/libvpx_new,gshORTON/webm.libvpx,Maria1099/webm.libvpx,Distrotech/libvpx,jmvalin/aom,matanbs/webm.libvpx,GrokImageCompression/aom,luctrudeau/aom,mwgoldsmith/vpx,altogother/webm.libvpx,Acidburn0zzz/webm.libvpx,reimaginemedia/webm.libvpx,kim42083/webm.libvpx,GrokImageCompression/aom,reimaginemedia/webm.libvpx,abwiz0086/webm.libvpx,shareefalis/libvpx,ShiftMediaProject/libvpx,kalli123/webm.libvpx,Topopiccione/libvpx,shareefalis/libvpx,stewnorriss/libvpx,running770/libvpx,shacklettbp/aom,zofuthan/libvpx,shyamalschandra/libvpx,zofuthan/libvpx,kalli123/webm.libvpx,ShiftMediaProject/libvpx,mwgoldsmith/libvpx,mwgoldsmith/vpx,Topopiccione/libvpx,kim42083/webm.libvpx,mwgoldsmith/libvpx,shareefalis/libvpx,running770/libvpx,shareefalis/libvpx,smarter/aom,webmproject/libvpx,smarter/aom,Acidburn0zzz/webm.libvpx,iniwf/webm.libvpx,webmproject/libvpx,gshORTON/webm.libvpx,jmvalin/aom,jmvalin/aom,kleopatra999/webm.libvpx,mwgoldsmith/libvpx,shyamalschandra/libvpx,jacklicn/webm.libvpx,Acidburn0zzz/webm.libvpx,stewnorriss/libvpx,VTCSecureLLC/libvpx,reimaginemedia/webm.libvpx,iniwf/webm.libvpx,altogother/webm.libvpx,mbebenita/aom,felipebetancur/libvpx,iniwf/webm.libvpx,zofuthan/libvpx,lyx2014/libvpx_c,running770/libvpx,mbebenita/aom,ittiamvpx/libvpx-1,ittiamvpx/libvpx-1,GrokImageCompression/aom,liqianggao/libvpx,goodleixiao/vpx,matanbs/webm.libvpx,ShiftMediaProject/libvpx,thdav/aom,shyamalschandra/libvpx,shacklettbp/aom,stewnorriss/libvpx,lyx2014/libvpx_c,jacklicn/webm.libvpx,mwgoldsmith/vpx,reimaginemedia/webm.libvpx,mbebenita/aom,altogother/webm.libvpx,felipebetancur/libvpx,VTCSecureLLC/libvpx,mbebenita/aom,Topopiccione/libvpx,lyx2014/libvpx_c,Topopiccione/libvpx,mbebenita/aom,iniwf/webm.libvpx,shacklettbp/aom,iniwf/webm.libvpx,GrokImageCompression/aom,shacklettbp/aom,webmproject/libvpx,smarter/aom,jmvalin/aom,VTCSecureLLC/libvpx,webmproject/libvpx,ittiamvpx/libvpx-1,matanbs/webm.libvpx,Suvarna1488/webm.libvpx,luctrudeau/aom,Topopiccione/libvpx,Suvarna1488/webm.libvpx,Suvarna1488/webm.libvpx,openpeer/libvpx_new,openpeer/libvpx_new,Maria1099/webm.libvpx,VTCSecureLLC/libvpx,running770/libvpx,Distrotech/libvpx,abwiz0086/webm.libvpx,mwgoldsmith/libvpx,Maria1099/webm.libvpx,shyamalschandra/libvpx,ittiamvpx/libvpx-1,gshORTON/webm.libvpx,VTCSecureLLC/libvpx,gshORTON/webm.libvpx,liqianggao/libvpx,matanbs/webm.libvpx,kleopatra999/webm.libvpx,Distrotech/libvpx,liqianggao/libvpx,mwgoldsmith/vpx,kalli123/webm.libvpx,kleopatra999/webm.libvpx,jacklicn/webm.libvpx,thdav/aom,gshORTON/webm.libvpx,felipebetancur/libvpx,felipebetancur/libvpx,zofuthan/libvpx,luctrudeau/aom,zofuthan/libvpx,webmproject/libvpx,smarter/aom,kalli123/webm.libvpx,lyx2014/libvpx_c,kim42083/webm.libvpx,shareefalis/libvpx,running770/libvpx,stewnorriss/libvpx,shacklettbp/aom,Distrotech/libvpx,altogother/webm.libvpx,jacklicn/webm.libvpx,jmvalin/aom,kleopatra999/webm.libvpx,ShiftMediaProject/libvpx,abwiz0086/webm.libvpx,Distrotech/libvpx,openpeer/libvpx_new,felipebetancur/libvpx,lyx2014/libvpx_c,GrokImageCompression/aom,kim42083/webm.libvpx,Maria1099/webm.libvpx,Maria1099/webm.libvpx,kleopatra999/webm.libvpx,ShiftMediaProject/libvpx,jacklicn/webm.libvpx,VTCSecureLLC/libvpx,mwgoldsmith/vpx,gshORTON/webm.libvpx,Suvarna1488/webm.libvpx,abwiz0086/webm.libvpx,ittiamvpx/libvpx-1,thdav/aom,goodleixiao/vpx,Acidburn0zzz/webm.libvpx,jacklicn/webm.libvpx,shyamalschandra/libvpx,reimaginemedia/webm.libvpx,goodleixiao/vpx,stewnorriss/libvpx,liqianggao/libvpx,smarter/aom,liqianggao/libvpx,ittiamvpx/libvpx-1,Suvarna1488/webm.libvpx,running770/libvpx,Distrotech/libvpx,Acidburn0zzz/webm.libvpx,mbebenita/aom,goodleixiao/vpx,felipebetancur/libvpx,abwiz0086/webm.libvpx,lyx2014/libvpx_c,mbebenita/aom,shyamalschandra/libvpx,matanbs/webm.libvpx,webmproject/libvpx,goodleixiao/vpx,thdav/aom,Suvarna1488/webm.libvpx,luctrudeau/aom,mwgoldsmith/libvpx,abwiz0086/webm.libvpx,luctrudeau/aom,openpeer/libvpx_new,kim42083/webm.libvpx,kalli123/webm.libvpx,jmvalin/aom,goodleixiao/vpx,Topopiccione/libvpx,Maria1099/webm.libvpx,shareefalis/libvpx