rtpproto: Check the size before reading buf[1]