Fix encoder range check for frame width and height
Fix encoder range check for frame width and height

14 bits available in the bistream => valid range [1..16383]
Removed unused local vars.

Change-Id: Icf3385e47a9fa13af70053129c2248671f285583

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