Skip to content

Commit 3072454

Browse files
committed
envivo fix; it does not finalize connect() arrays properly
1 parent 095c659 commit 3072454

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

ngx_rtmp_amf.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,14 @@ ngx_rtmp_amf_read_object(ngx_rtmp_amf_ctx_t *ctx, ngx_rtmp_amf_elt_t *elts,
229229
return NGX_ERROR;
230230
}
231231

232-
if (ngx_rtmp_amf_get(ctx, &type, 1) != NGX_OK
233-
|| type != NGX_RTMP_AMF_END)
234-
{
232+
rc = ngx_rtmp_amf_get(ctx, &type, 1);
233+
234+
/* Envivo encoder does not finalize objects properly */
235+
if (rc == NGX_DONE) {
236+
return NGX_OK;
237+
}
238+
239+
if (rc != NGX_OK || type != NGX_RTMP_AMF_END) {
235240
return NGX_ERROR;
236241
}
237242

0 commit comments

Comments
 (0)