Third set of checks of buffer level against maximum buffer size
Third set of checks of buffer level against maximum buffer size

Additional check of buffer level to ensure it doesn't exceed the
maximum buffer size.

Change-Id: I1ba4f8b09bbec89646885040ff47470196af521e

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