Fix benchmark

Make sure benchmark doesn't segfault  and make sure it bails when no such codec.