   parse: ->
     startTime = process.hrtime()
     @tree = { boxes: [] }
+    @boxes = []
     while @bits.has_more_data()
       box = Box.parse @bits, null  # null == root box
       if box instanceof MovieBox

        else
          @videoTrakBox = child

    return

  getSPS: ->

        @mdatBox = box
#      process.stdout.write box.dump 0, 1
      @tree.boxes.push box.getTree()
      @boxes.push box
    diffTime = process.hrtime startTime
    console.log "took #{(diffTime[0] * 1e9 + diffTime[1]) / 1000000} ms to parse"
    console.log "EOF"
