Trap very short arf group just before a kf.
Trap very short arf group just before a kf.

Trap the case where we end up with a very short arf group just before
a key frame. Such a group often has poor quality and may cause pulsing.

For example if the KF is 17 frames away we are better doing two mid-size
groups of 9 and 8 than a group of 15 followed by a group of 2.

This becomes more and more important when coding with a short forced
kf interval though it may not impact our standard tests much.

Change-Id: I29d83d6637b203eac69be320dd35a7401a4678c1

smarter/aom,ShiftMediaProject/libvpx,mwgoldsmith/libvpx,webmproject/libvpx,smarter/aom,Topopiccione/libvpx,webmproject/libvpx,webmproject/libvpx,mbebenita/aom,mwgoldsmith/libvpx,GrokImageCompression/aom,Topopiccione/libvpx,mbebenita/aom,GrokImageCompression/aom,mwgoldsmith/libvpx,luctrudeau/aom,mwgoldsmith/vpx,luctrudeau/aom,webmproject/libvpx,ShiftMediaProject/libvpx,smarter/aom,luctrudeau/aom,Topopiccione/libvpx,ShiftMediaProject/libvpx,smarter/aom,mbebenita/aom,webmproject/libvpx,mwgoldsmith/libvpx,GrokImageCompression/aom,mbebenita/aom,GrokImageCompression/aom,mbebenita/aom,Topopiccione/libvpx,smarter/aom,mwgoldsmith/libvpx,smarter/aom,mwgoldsmith/vpx,Topopiccione/libvpx,mbebenita/aom,mwgoldsmith/vpx,GrokImageCompression/aom,ShiftMediaProject/libvpx,mbebenita/aom,GrokImageCompression/aom,Topopiccione/libvpx,ShiftMediaProject/libvpx,mbebenita/aom,luctrudeau/aom,mwgoldsmith/libvpx,mbebenita/aom,mwgoldsmith/vpx,mwgoldsmith/vpx,luctrudeau/aom,luctrudeau/aom,mwgoldsmith/vpx,webmproject/libvpx