Skip to content

Commit b9621aa

Browse files
committed
[fix] fix a bug that pushing pure audio will fail when some directives are set.
1 parent 6ded4b6 commit b9621aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ngx_rtmp_live_module.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,11 @@ ngx_rtmp_live_av(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h,
10101010
continue;
10111011
}
10121012

1013+
if (codec_ctx->pure_audio) {
1014+
lacf->wait_video = 0;
1015+
lacf->wait_key = 0;
1016+
}
1017+
10131018
if (lacf->wait_video && h->type == NGX_RTMP_MSG_AUDIO &&
10141019
!pctx->cs[0].active)
10151020
{

0 commit comments

Comments
 (0)