diff options
author | Ton Roosendaal <ton@blender.org> | 2011-06-08 19:17:38 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-06-08 19:17:38 +0400 |
commit | 17becc751dbb8b6ca48dbc58f906388be2614126 (patch) | |
tree | 75ed8d303e9d36815eaffd3ec0c8e5c53aae15b5 | |
parent | 05b54bec3baec12320e7893543bb685a13f8bce5 (diff) |
Bugfix #27601
Scaling in compostior down to 1 pixel size crashed gaussian blur.
-rw-r--r-- | source/blender/nodes/intern/CMP_util.c | 2 |
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) |