From f7e7ea0fc115d14ba0966b999ab0f5c2cf809a11 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Wed, 10 Oct 2012 23:46:16 +0400 Subject: [PATCH] fixed frame interleaving --- ngx_rtmp_live_module.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ngx_rtmp_live_module.c b/ngx_rtmp_live_module.c index f2da1f0..754bf1a 100644 --- a/ngx_rtmp_live_module.c +++ b/ngx_rtmp_live_module.c @@ -393,6 +393,10 @@ ngx_rtmp_live_av(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, ch.csid = NGX_RTMP_LIVE_CSID_AUDIO; } + if (lacf->interleave) { + ch.csid = NGX_RTMP_LIVE_CSID_VIDEO; + } + lh.csid = ch.csid; diff_timestamp = ch.timestamp - lh.timestamp;