From 61b9c5397247d60585dc6c74368d76b1b1183e85 Mon Sep 17 00:00:00 2001 From: Roman Arutyunyan Date: Mon, 22 Apr 2013 11:16:05 +0400 Subject: [PATCH] added checks for nals #7-9 in incoming stream --- hls/ngx_rtmp_hls_module.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hls/ngx_rtmp_hls_module.c b/hls/ngx_rtmp_hls_module.c index 46dde11..903084e 100644 --- a/hls/ngx_rtmp_hls_module.c +++ b/hls/ngx_rtmp_hls_module.c @@ -1469,6 +1469,13 @@ ngx_rtmp_hls_video(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, "hls: h264 NAL type=%ui, len=%uD", (ngx_uint_t) nal_type, len); + if (nal_type >= 7 && nal_type <= 9) { + if (ngx_rtmp_hls_copy(s, NULL, &p, len - 1, &in) != NGX_OK) { + return NGX_ERROR; + } + continue; + } + if (!aud_sent) { switch (nal_type) { case 1: