mirror of
https://github.com/opencv/opencv.git
synced 2025-07-30 01:06:38 +08:00
Fixed two issues found by static analysis
This commit is contained in:
parent
6ffc48769a
commit
0f1e193193
@ -323,6 +323,8 @@ public:
|
|||||||
|
|
||||||
#if CV_SIMD128
|
#if CV_SIMD128
|
||||||
const int* ofsptr = ofsbuf.empty() ? 0 : (const int*)&ofsbuf[0];
|
const int* ofsptr = ofsbuf.empty() ? 0 : (const int*)&ofsbuf[0];
|
||||||
|
if (poolingType == MAX && !compMaxIdx && !ofsptr)
|
||||||
|
CV_Error(Error::StsBadArg, "ofsbuf should be initialized in this mode");
|
||||||
v_float32x4 idx00(0.f, (float)stride_w, (float)(stride_w*2), (float)(stride_w*3));
|
v_float32x4 idx00(0.f, (float)stride_w, (float)(stride_w*2), (float)(stride_w*3));
|
||||||
v_float32x4 ones = v_setall_f32(1.f);
|
v_float32x4 ones = v_setall_f32(1.f);
|
||||||
v_float32x4 idx_delta = v_setall_f32((float)(inp_width - kernel_w));
|
v_float32x4 idx_delta = v_setall_f32((float)(inp_width - kernel_w));
|
||||||
|
@ -775,6 +775,7 @@ bool TiffEncoder::writeLibTiff( const std::vector<Mat>& img_vec, const std::vect
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
TIFFClose(pTiffHandle);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user