Skip to content

Commit

Permalink
bug fix: skip parsing aac non config data in ngx_rtmp_codec_av
Browse files Browse the repository at this point in the history
  • Loading branch information
igorshevach committed May 15, 2024
1 parent 07e126a commit 7401182
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nginx-rtmp-module/src/ngx_rtmp_codec_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,11 +580,9 @@ ngx_rtmp_codec_av(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, ngx_chain_t *in)
}

/* no conf */
if (!ngx_rtmp_is_codec_header(ctx->video_codec_id, in))
{
if (!ngx_rtmp_is_codec_header(ctx->video_codec_id, in)) {
if(h->type != NGX_RTMP_MSG_VIDEO
|| ctx->video_captions_tries <= 0)
{
|| ctx->video_captions_tries <= 0) {
return NGX_OK;
}

Expand Down

0 comments on commit 7401182

Please sign in to comment.