diff --git a/vsdeband/noise.py b/vsdeband/noise.py index 721f8e1..0c71a95 100644 --- a/vsdeband/noise.py +++ b/vsdeband/noise.py @@ -345,6 +345,8 @@ def _perform_graining( scale = ((1 << (clip.format.bits_per_sample - 8)) - 1) if clip.format.bits_per_sample > 8 else 255 strength = (((1.0 - stre) * scale) if stre else 0.0 for stre in strength) + kwargs.setdefault('ysize', kwargs.get('xsize', 2.0)) + return core.noise.Add(clip, *strength, constant=not dynamic, **kwargs)