bug fix active_worst_quality set below active_best_quality
bug fix active_worst_quality set below active_best_quality

fixed a bug where active_worst_quality could be set
below active_best_quality which could result in an
infinite loop.

Change-Id: I93c229c3bc5bff2a82b4c33f41f8acf4dd194039

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