Update global_motion.cpp
authorShai <shaibagon@gmail.com>
Tue, 10 Jun 2014 14:31:18 +0000 (17:31 +0300)
committerShai <shaibagon@gmail.com>
Tue, 10 Jun 2014 14:31:18 +0000 (17:31 +0300)
commit91201b225a4de7ab477753becaacacef46f3ef27
treec81f8a4a7a876a4e353924d679e4b173d096f4e6
parente0f40a7f4a17c4200d5ca79ed3b37cc65ad916f9
Update global_motion.cpp

An extremely rare case where, for numeric reasons bestM finds more inliers than ninliersMax.
This RARE case causes memory corruption and a nasty seg fault.
modules/videostab/src/global_motion.cpp