         client.isWaitingForKeyFrame = false
 
       if client.isPlaying
+        rtpBuffer = Buffer.concat [new Buffer(rtpHeader), nalUnit],
+          rtp.RTP_HEADER_LEN + nalUnitLen
         rtp.replaceSSRCInRTP rtpBuffer, client.videoSSRC
 
         client.videoPacketCount++

      isEnd: true

    nalUnitLen = nalUnit.length
    rtpBuffer = Buffer.concat [new Buffer(rtpData), nalUnit],
      rtp.RTP_HEADER_LEN + 2 + nalUnitLen
    for clientID, client of stream.rtspClients
      if client.isWaitingForKeyFrame and isKeyFrame
        client.isPlaying = true
        client.isWaitingForKeyFrame = false

      if client.isPlaying
        rtp.replaceSSRCInRTP rtpBuffer, client.videoSSRC

        client.videoPacketCount++

          client.isWaitingForKeyFrame = false

        if client.isPlaying
          rtpBuffer = Buffer.concat [new Buffer(rtpData), thisNalUnit],
            rtp.RTP_HEADER_LEN + 2 + thisNalUnitLen
          rtp.replaceSSRCInRTP rtpBuffer, client.videoSSRC

          logger.tag 'rtsp:out', "[rtsp:stream:#{stream.id}] send video to #{client.id}: fragment n=#{fragmentNumber} timestamp=#{ts} bytes=#{rtpBuffer.length} marker=false keyframe=#{isKeyFrame}"
