fixed h264 header considered by recorder as a key with intermediate frames following

This commit is contained in:
Roman Arutyunyan
2012-12-16 01:07:01 +04:00
parent a45e3d5cbe
commit 8658d99529
4 changed files with 17 additions and 9 deletions

View File

@ -192,7 +192,7 @@ ngx_rtmp_codec_av(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h,
}
/* no conf */
if (in->buf->pos[1]) {
if (!ngx_rtmp_is_codec_header(in)) {
return NGX_OK;
}