added checks for nals #7-9 in incoming stream

This commit is contained in:
Roman Arutyunyan 2013-04-22 11:16:05 +04:00
parent d393508e58
commit 61b9c53972

View file

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