mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-27 23:58:58 +02:00
added checks for nals #7-9 in incoming stream
This commit is contained in:
parent
d393508e58
commit
61b9c53972
|
@ -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",
|
"hls: h264 NAL type=%ui, len=%uD",
|
||||||
(ngx_uint_t) nal_type, len);
|
(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) {
|
if (!aud_sent) {
|
||||||
switch (nal_type) {
|
switch (nal_type) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|
Loading…
Reference in a new issue