Fixed potential overflows
Fixed potential overflows

The two arrays are typically initialized to INT64_MAX, if they are not
filled with valid values before the addition, the values can overflow
and lead to wrong results.

Change-Id: I515de22cf3e8f55af4b74bdb2c8eb821a02d3059

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