Log in

View Full Version : SpatialSoften crash with large radii?


FlimsyFeet
27th August 2012, 21:22
I accidentally noticed that if you try SpatialSoften with a large radius it will crash AviSynth:

ImageReader("D:\Video projects\500px-SMPTE_Color_Bars.svg.png")
converttoyuy2()
spatialsoften(20,255,255)

works, but if you knock the radius up from 20 to 40 then you get dumped out of your program (no error message). I know that in reality you wouldn't really want such a high radius but should there be some checks in place to prevent out-of-range values being used?

IanB
27th August 2012, 23:53
: GenericVideoFilter(_child), diameter(_radius*2+1),
...
const BYTE* line[65]; // better not make diameter bigger than this... if Radius is greater than 32 then accessing line[] will blow up.