Fixed integer overflow for large input video
Fixed integer overflow for large input video

The sum of squared mv components can go beyond int range for large
 input resolution. This commit changed the type to int64 to avoid
overflow.

Change-Id: Ib21ea2817845cea1435f893064e6417c79c5bc64

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