Disable specialcase for last frames if the sequence contains ARFs.
Disable specialcase for last frames if the sequence contains ARFs.

firstpass.c contains some rate adjustment code that assures that the
last few frames in a sequence abide by rate limits. If the second-to-
last group of frames contains an alt-ref frame (ARF), the last golden
frame (GF) is zero bytes, and we will thus spend a ridiculously high
number of bits on regular P-frames trying to hit the target rate. This
does slightly enhance the quality of these last few frames, but has
no perceptual value (other than hitting the target rate).

Disabling this code means we consistently (slightly) undershoot the
target rate and consequently do worse on the last few frames of a
clip, which is particularly noticeable for small clips. The quality-
per-bitrate is generally better, ~0.2% better overall on derf-set,
especially on clips such as garden, tennis, foreman at low bitrates.
Has a negative effect on hallmonitor at high bitrates.

Change-Id: I1d63452fef5fee4a0ad2fb2e9af4c9f2e0d86d23

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