Segfault in before/after mode, fixes #5529

This commit is contained in:
Ingo Weyrich
2019-11-17 13:58:43 +01:00
parent f041573d4d
commit 4c99d3b78b
3 changed files with 3 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ void boxblur(float** src, float** dst, int radius, int W, int H, bool multiThrea
{
//box blur using rowbuffers and linebuffers instead of a full size buffer
radius = rtengine::min(radius, W - 1, H - 1);
if (radius == 0) {
if (src != dst) {
#ifdef _OPENMP