Commit 52a339cb authored by Andrey Pavlenko's avatar Andrey Pavlenko Committed by OpenCV Buildbot

Merge pull request #2401 from akarsakov:fix_elem_size

parents 0f43345f 6d83048e
...@@ -1364,7 +1364,7 @@ static bool ocl_arithm_op(InputArray _src1, InputArray _src2, OutputArray _dst, ...@@ -1364,7 +1364,7 @@ static bool ocl_arithm_op(InputArray _src1, InputArray _src2, OutputArray _dst,
if( haveScalar ) if( haveScalar )
{ {
size_t esz = CV_ELEM_SIZE(wtype)*scalarcn; size_t esz = CV_ELEM_SIZE1(wtype)*scalarcn;
double buf[4]={0,0,0,0}; double buf[4]={0,0,0,0};
Mat src2sc = _src2.getMat(); Mat src2sc = _src2.getMat();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment