Corrected optimization of 8x8 DCT code
Corrected optimization of 8x8 DCT code

The 8x8 DCT uses a fast version whenever possible.
There was a mistake in the checking code which
meant sometimes the fast version was used when it
was not safe to do so.

Change-Id: I154c84c9e2d836764768a11082947ca30f4b5ab7
(cherry picked from commit fd05fb0c21e253b4d6f92d7e0b752850ff8ab188)

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