Skip the last frame update for some frame repeats.
Skip the last frame update for some frame repeats.

Where a frame appears to be a repeat of an earlier
frame or frame buffer,  but the first pass code
does not anticipate this (usually because it is matching
the GF or ARF buffer not the last frame buffer), do not
update the last frame buffer.

This helps ensure that the content of the last frame buffer
is kept "different" where possible, and not updated to
match the GF or ARF. This is particularly helpful in some
animated sequences where there are groups of repeating
frames. Here it has quite a big impact. However, in most
of our standard test clips it has little or no impact.

Change-Id: I77332ee1a69f9ffc0c6080bfeb811c43fd8828e6

shyamalschandra/libvpx,zofuthan/libvpx,mwgoldsmith/vpx,zofuthan/libvpx,mwgoldsmith/vpx,goodleixiao/vpx,luctrudeau/aom,ittiamvpx/libvpx-1,shacklettbp/aom,stewnorriss/libvpx,Topopiccione/libvpx,ittiamvpx/libvpx-1,zofuthan/libvpx,VTCSecureLLC/libvpx,mwgoldsmith/vpx,GrokImageCompression/aom,ittiamvpx/libvpx-1,mbebenita/aom,zofuthan/libvpx,shyamalschandra/libvpx,openpeer/libvpx_new,VTCSecureLLC/libvpx,smarter/aom,goodleixiao/vpx,openpeer/libvpx_new,goodleixiao/vpx,webmproject/libvpx,GrokImageCompression/aom,zofuthan/libvpx,GrokImageCompression/aom,shacklettbp/aom,jmvalin/aom,smarter/aom,shyamalschandra/libvpx,liqianggao/libvpx,Topopiccione/libvpx,luctrudeau/aom,mbebenita/aom,stewnorriss/libvpx,ittiamvpx/libvpx-1,shyamalschandra/libvpx,mbebenita/aom,felipebetancur/libvpx,smarter/aom,mbebenita/aom,shacklettbp/aom,running770/libvpx,ShiftMediaProject/libvpx,smarter/aom,ShiftMediaProject/libvpx,Topopiccione/libvpx,jmvalin/aom,Topopiccione/libvpx,thdav/aom,felipebetancur/libvpx,mbebenita/aom,VTCSecureLLC/libvpx,GrokImageCompression/aom,luctrudeau/aom,shyamalschandra/libvpx,shacklettbp/aom,thdav/aom,GrokImageCompression/aom,mwgoldsmith/libvpx,running770/libvpx,goodleixiao/vpx,jmvalin/aom,smarter/aom,VTCSecureLLC/libvpx,liqianggao/libvpx,mwgoldsmith/libvpx,thdav/aom,VTCSecureLLC/libvpx,ShiftMediaProject/libvpx,shyamalschandra/libvpx,felipebetancur/libvpx,mbebenita/aom,felipebetancur/libvpx,webmproject/libvpx,zofuthan/libvpx,smarter/aom,stewnorriss/libvpx,felipebetancur/libvpx,liqianggao/libvpx,stewnorriss/libvpx,running770/libvpx,thdav/aom,jmvalin/aom,ShiftMediaProject/libvpx,thdav/aom,webmproject/libvpx,mbebenita/aom,luctrudeau/aom,mwgoldsmith/libvpx,ShiftMediaProject/libvpx,openpeer/libvpx_new,mwgoldsmith/libvpx,running770/libvpx,mwgoldsmith/libvpx,running770/libvpx,running770/libvpx,Topopiccione/libvpx,mwgoldsmith/libvpx,stewnorriss/libvpx,ittiamvpx/libvpx-1,webmproject/libvpx,stewnorriss/libvpx,luctrudeau/aom,felipebetancur/libvpx,liqianggao/libvpx,mbebenita/aom,goodleixiao/vpx,goodleixiao/vpx,webmproject/libvpx,luctrudeau/aom,openpeer/libvpx_new,ittiamvpx/libvpx-1,mwgoldsmith/vpx,jmvalin/aom,mwgoldsmith/vpx,openpeer/libvpx_new,liqianggao/libvpx,thdav/aom,Topopiccione/libvpx,webmproject/libvpx,shacklettbp/aom,mwgoldsmith/vpx,shacklettbp/aom,GrokImageCompression/aom,jmvalin/aom,openpeer/libvpx_new,liqianggao/libvpx,VTCSecureLLC/libvpx,mbebenita/aom