Credit Andrew - fix vorbis audio which was scratchy and ensure aging plugin does...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / boxblur.C
index d0c00c0904a13c5fa8f62dbdbc4d7d9a2d03db2a..31f017d8fb4d086e7db47616189e7f2c796479fd 100644 (file)
@@ -6,6 +6,7 @@ void blurt(dst_t *dst, int dst_step, src_t *src, int src_step,
                int len, int radius, float s)
 {
        int n = len/2-1;
+       if( n <= 0 ) return;
        if( radius > n ) radius = n;
        const int length = radius*2 + 1;
        const int inv = s * ((1<<16) + length/2)/length;