brdecode: don't assume a fixed page size