guard against space/time distortion
guard against space/time distortion

and divide by 0 errors

Change-Id: I8af5ca3d0913cb6f278fff754f8772bcb62e674a

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