Merge branch 'record-keyframes'

This commit is contained in:
Roman Arutyunyan
2012-12-25 19:50:11 +04:00
5 changed files with 88 additions and 43 deletions

View File

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