Calculating has_second_ref only once for single_ref context.
Calculating has_second_ref only once for single_ref context.

Change-Id: Ib1253e0606426850f53060a4c5303af86bf1c093

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