There aren't segfaults in my code. It takes static number of frames, I didn't test it