From 91c69aed28579690aae604ec831acb6f8223fd83 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Wed, 6 Nov 2013 12:24:03 +0400 Subject: [PATCH] fixed stream sync in wait_video mode --- ngx_rtmp_live_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ngx_rtmp_live_module.c b/ngx_rtmp_live_module.c index f3bd263..54ee21e 100644 --- a/ngx_rtmp_live_module.c +++ b/ngx_rtmp_live_module.c @@ -752,7 +752,7 @@ ngx_rtmp_live_av(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, lh.timestamp = cs->timestamp; } - clh = ch; + clh = lh; clh.type = (h->type == NGX_RTMP_MSG_AUDIO ? NGX_RTMP_MSG_VIDEO : NGX_RTMP_MSG_AUDIO);