vp8cx_set_ref: Flush encoder.
vp8cx_set_ref: Flush encoder.

According to the current API spec we need to call vpx_codec_encode() until
vpx_codec_get_cx_data() returns NULL.

Change-Id: Ide0c531dc0d453df8ec1edb8acb894856d6cc22e

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