Use -1 consistently as invalid buffer idx
Use -1 consistently as invalid buffer idx

Instead of mixed use of both -1 and INT_MAX.

This also fixes a vp9 fuzzing test failure.

Change-Id: I950ea94b44ec7cdb5232773bee30b104e342f52a

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