mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
added AAC header check to recorder
This commit is contained in:
@ -1018,6 +1018,15 @@ ngx_rtmp_record_node_av(ngx_rtmp_session_t *s, ngx_rtmp_record_rec_ctx_t *rctx,
|
|||||||
"record: %V skipping until keyframe", &rracf->id);
|
"record: %V skipping until keyframe", &rracf->id);
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if (codec_ctx && codec_ctx->audio_codec_id == NGX_RTMP_AUDIO_AAC &&
|
||||||
|
!rctx->aac_header_sent)
|
||||||
|
{
|
||||||
|
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0,
|
||||||
|
"record: %V skipping until AAC header", &rracf->id);
|
||||||
|
return NGX_OK;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ngx_rtmp_record_write_frame(s, rctx, h, in, 1);
|
return ngx_rtmp_record_write_frame(s, rctx, h, in, 1);
|
||||||
|
Reference in New Issue
Block a user