Adding scale_if_required() function.
Adding scale_if_required() function.

Change-Id: I87819fed5aebb6ffe2f4d4655df226235a3d21cb

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