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

pull/13383/head
Vadim Pisarevsky 14 years ago
parent 15f56c8aa1
commit 5791e89e4d
  1. 2
      modules/imgproc/src/filter.cpp

@ -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() )

Loading…
Cancel
Save