Handle long delay between video frames in multi-thread decoder(issue 312)
Handle long delay between video frames in multi-thread decoder(issue 312)

This is reported by m...@hesotech.de (see issue 312):
"The decoder causes an access violation
when you decode the first frame, then make a pause of about
60 seconds and then decode further frames. But only if
vpx_codec_dec_cfg_t.threads> 1.

This is caused by a timeout of WaitForSingleObject.
When I change the definition of VPXINFINITE to INFINITE(0xFFFFFFFF),
the problem is solved."

Reproduced the crash and verified the changes on Windows platform.
This brings the behavior inline with the other platforms using sem_wait().

Change-Id: I27b32f90bce05846ef2684b50f7a88f292299da1

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