fixed amf writer

This commit is contained in:
Roman Arutyunyan 2012-04-06 17:08:13 +04:00
parent c34d07c012
commit fd54d6cc0f

View file

@ -120,6 +120,10 @@ ngx_rtmp_amf_put(ngx_rtmp_amf_ctx_t *ctx, void *p, size_t n)
l = ctx->link;
if (ctx->link && ctx->first == NULL) {
ctx->first = ctx->link;
}
while(n) {
b = l ? l->buf : NULL;