Check that we have a data:crystal frame in input or drop the frame to avoid random memory allocations.