bug fix check frame buffer index before copy
bug fix check frame buffer index before copy

in onyx_if.c update_reference_frames() make
sure that frame buffer indexes are not equal
before preforming a buffer copy.  If two frames
share the same buffer the flags will already be
set correctly.

Change-Id: Ida9b5516d08e3435c90f131d2dc19d842cfb536e

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