Test that encoded frames are <= the given frameMax