fixed defects from coverity.com
fixed defects from Xcode
fixed difference between SSE2 and C branches of StereoBM; they should now produce absolutely the same results
Merge pull request #2393 from ilya-lavrenov:coverity
Merge pull request #2415 from vpisarev:fix_stereobm_sse