Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2011-06-08 19:17:38 +0400
committerTon Roosendaal <ton@blender.org>2011-06-08 19:17:38 +0400
commit17becc751dbb8b6ca48dbc58f906388be2614126 (patch)
tree75ed8d303e9d36815eaffd3ec0c8e5c53aae15b5 /source/blender/nodes
parent05b54bec3baec12320e7893543bb685a13f8bce5 (diff)
Bugfix #27601
Scaling in compostior down to 1 pixel size crashed gaussian blur.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/intern/CMP_util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/nodes/intern/CMP_util.c b/source/blender/nodes/intern/CMP_util.c
index 78025f4d964..982aaf9991d 100644
--- a/source/blender/nodes/intern/CMP_util.c
+++ b/source/blender/nodes/intern/CMP_util.c
@@ -1320,6 +1320,8 @@ void IIR_gauss(CompBuf* src, float sigma, int chan, int xy)
if ((xy < 1) || (xy > 3)) xy = 3;
+ if (src->x < 2 && src->y < 2) return;
+
// see "Recursive Gabor Filtering" by Young/VanVliet
// all factors here in double.prec. Required, because for single.prec it seems to blow up if sigma > ~200
if (sigma >= 3.556)