fixed buffer allocation for constant-value borders in the filter engine (ticket #524)
This commit is contained in:
parent
15f56c8aa1
commit
5791e89e4d
@ -219,7 +219,7 @@ int FilterEngine::start(Size _wholeSize, Rect _roi, int _maxBufRows)
|
|||||||
srcRow.resize(esz*(maxWidth + ksize.width - 1));
|
srcRow.resize(esz*(maxWidth + ksize.width - 1));
|
||||||
if( columnBorderType == BORDER_CONSTANT )
|
if( columnBorderType == BORDER_CONSTANT )
|
||||||
{
|
{
|
||||||
constBorderRow.resize(getElemSize(bufType)*(maxWidth+VEC_ALIGN));
|
constBorderRow.resize(getElemSize(bufType)*(maxWidth + ksize.width - 1 + VEC_ALIGN));
|
||||||
uchar *dst = alignPtr(&constBorderRow[0], VEC_ALIGN), *tdst;
|
uchar *dst = alignPtr(&constBorderRow[0], VEC_ALIGN), *tdst;
|
||||||
int n = (int)constBorderValue.size(), N;
|
int n = (int)constBorderValue.size(), N;
|
||||||
if( isSeparable() )
|
if( isSeparable() )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user