mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-15 08:21:09 +02:00
fixed non-standard (48kHz) audio streaming
This commit is contained in:
parent
8293c425a5
commit
562a6aad7e
|
@ -560,6 +560,9 @@ ngx_rtmp_mp4_parse_audio(ngx_rtmp_session_t *s, u_char *pos, u_char *last,
|
|||
}
|
||||
|
||||
switch (ctx->sample_rate) {
|
||||
case 5512:
|
||||
break;
|
||||
|
||||
case 11025:
|
||||
*p |= 0x04;
|
||||
break;
|
||||
|
@ -568,7 +571,7 @@ ngx_rtmp_mp4_parse_audio(ngx_rtmp_session_t *s, u_char *pos, u_char *last,
|
|||
*p |= 0x08;
|
||||
break;
|
||||
|
||||
case 44100:
|
||||
default: /* 44100, 4800 etc */
|
||||
*p |= 0x0c;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue