Itseez/opencv — pull request #1994 by StevenPuttemans (2013-12-16 10:06:48+00:00)
Title: Fixed suggestion of bugfix 3431

Seems correct to me and builds fine on my machine.
Also the output seems correct.