Made changes to allow ml module to work with big data.
Changed types of some variables from int64 back to int.
Also corrected some indexes to be size_t.
Fixed dummy warning.
Fix setting of FPS after frame width and height with DShow cameras

Issue #2114
Check memory allocation
Initialize local variables
Check memory allocation
Declare vars as locally as possible
Remove unused constructor
Add checks for valid values
Fix wording on some errors
No need to check vector size before clear()
add setDeviceEx interface
simplify the logic of save binary
Merge pull request #395 from LeonidBeynenson:fix_ml_large_data_bug__2.4
Merge pull request #410 from taka-no-me:fix_cap_dshow_setfps
Merge pull request #421 from asmaloney:check-mem-alloc2
Merge pull request #424 from asmaloney:additional-checks
Merge pull request #425 from asmaloney:vector_empty
Merge pull request #429 from bitwangyaoyao:2.4_setdevEx
Merge pull request #420 from asmaloney:check-mem-alloc