From 7b552c0493bc8e030318b9c452a0070c94e451cf Mon Sep 17 00:00:00 2001 From: Elena Gvozdeva Date: Thu, 20 Feb 2014 17:34:51 +0400 Subject: [PATCH] fixed --- modules/imgproc/src/imgwarp.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/imgproc/src/imgwarp.cpp b/modules/imgproc/src/imgwarp.cpp index 1953a47347..cf1061ca2a 100644 --- a/modules/imgproc/src/imgwarp.cpp +++ b/modules/imgproc/src/imgwarp.cpp @@ -1920,6 +1920,12 @@ public: 0; } + if( func == 0 ) + { + *ok = false; + return; + } + switch (src.depth()) { case CV_8U: @@ -2061,7 +2067,7 @@ public: AutoBuffer buf(bufsize + 64); uchar* bufptr = alignPtr((uchar*)buf, 32); - if( func( pSrc, (int)src.step[0], pDst, (int)dst.step[0], dstOffset, dstSize, ippBorderRepl, 0, pSpec, bufptr ) <= 0 ) + if( func( pSrc, (int)src.step[0], pDst, (int)dst.step[0], dstOffset, dstSize, ippBorderRepl, 0, pSpec, bufptr ) < 0 ) *ok = false; } private: