Cleaning up joint_motion_search function.
Cleaning up joint_motion_search function.

Change-Id: I70a0878b23bda0ac3ff8733b4c96d5c636bc551c

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