Skip to content

Commit

Permalink
Merge pull request #206 from kaltura/master-aac-header-parse-config-only
Browse files Browse the repository at this point in the history
LIV-1259: audio stream transcoding fails due to low memory on packager & ingest server
  • Loading branch information
igorshevach authored May 15, 2024
2 parents 5b80aaf + c53bd46 commit 0da2ca6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 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,10 +580,10 @@ ngx_rtmp_codec_av(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, ngx_chain_t *in)
}

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

Expand Down

0 comments on commit 0da2ca6

Please sign in to comment.