Itseez/opencv — pull request #2501 by asmorkalov (2014-03-20 08:18:54+00:00)
Title: Native camera fix for some deivices with Qualcomm SoC like Samsung Galaxy S4.

The patch replaces normal object construction with placement new. `Sizeof` of some camera objects are different on different devices that leads to `SIGSEGVs` and stack corruption. Proposed patch allocates buffers that rather bigger than original object size to prevent memory access violations. Native camera do not use any fields directly, so such solution is applicable.