Skip to content

Commit 4d835f6

Browse files
authored
fix bug: error flv header
1 parent e8932c7 commit 4d835f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http/ngx_http_flv_live_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ ngx_http_flv_live_send_header(ngx_http_request_t *r)
131131
return NGX_HTTP_INTERNAL_SERVER_ERROR;
132132
}
133133

134-
switch (hflcf->audio | (hflcf->video < 1)) {
134+
switch (hflcf->audio | (hflcf->video << 1)) {
135135
case 1: // audio only
136136
b->start = b->pos = ngx_flv_live_audio_header;
137137
b->end = b->last = ngx_flv_live_audio_header +

0 commit comments

Comments
 (0)