fixed frame interleaving

This commit is contained in:
Roman Arutyunyan 2012-10-10 23:46:16 +04:00
parent f23075c78d
commit f7e7ea0fc1

View file

@ -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;