Log in

View Full Version : GetFrame causing loop


MysteryX
23rd September 2015, 23:38
I'm seeing something weird here. It was working "fine" until I changed something and now I'm seeing this weird behavior, and I don't see why this is happening.
https://github.com/mysteryx93/AviSynthShader/blob/master/Shader.cpp

In GetFrame, I call CopyInputClip, and on this line
PVideoFrame frame = clip->GetFrame(n, env);

It recursively calls the Shader::GetFrame again, causing a loop and crashing.

What am I doing wrong here?