Move call to vp9_rc_get_second_pass_params().
Move call to vp9_rc_get_second_pass_params().

Call to vp9_rc_get_second_pass_params() moved from
Pass2Encode() to earlier in vp9_get_compressed_data(),
to ensure that two pass stats and parameters are
available before decisions such as frame scaling.

Change-Id: If21537f0073919b04696a7d5e9aac78e23d76f39

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