rawdec: only allocate a full-frame size buffer if it actually will