 
         seq.wait parseResult.rtmpMessages.length, (err, output) ->
           if err?
-            logger.error "[rtmp:receive] packet error: #{err}"
+            logger.error "[rtmp:receive] ignoring invalid packet (#{err})"
           if output?
             outputs.push output
           consumeNextRTMPMessage()


createAMF0Object = (obj) ->
  buf = new Buffer [ 0x03 ]  # object-marker
  return createAMF0ECMAArray obj, buf

createAMF0ECMAArray = (obj, buf=null) ->
  bufs = []
  totalLength = 0
  if buf?

    buf = new Buffer [ 0x0a ]  # strict-array-marker
    buf = createAMF0StrictArray data, buf
  else if type is 'object'
    buf = createAMF0Object data
  else
    throw new Error "Unknown data type \"#{type}\" for data #{data}"
  buf
