Commit 5791e89e authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed buffer allocation for constant-value borders in the filter engine (ticket #524)

parent 15f56c8a
......@@ -219,7 +219,7 @@ int FilterEngine::start(Size _wholeSize, Rect _roi, int _maxBufRows)
srcRow.resize(esz*(maxWidth + ksize.width - 1));
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;
int n = (int)constBorderValue.size(), N;
if( isSeparable() )
......
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