mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
Merge branch 'record-keyframes'
This commit is contained in:
@ -561,6 +561,13 @@ ngx_rtmp_get_video_frame_type(ngx_chain_t *in)
|
||||
}
|
||||
|
||||
|
||||
static inline ngx_int_t
|
||||
ngx_rtmp_is_codec_header(ngx_chain_t *in)
|
||||
{
|
||||
return in->buf->pos + 1 < in->buf->last && in->buf->pos[1] == 0;
|
||||
}
|
||||
|
||||
|
||||
extern ngx_rtmp_bandwidth_t ngx_rtmp_bw_out;
|
||||
extern ngx_rtmp_bandwidth_t ngx_rtmp_bw_in;
|
||||
|
||||
|
Reference in New Issue
Block a user