MAX_NFRAMES
if (msg_head->nframes < 1 || msg_head->nframes > MAX_NFRAMES)
if (msg_head->nframes > MAX_NFRAMES + 1)