mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-19 01:31:09 +02:00
fixed AAC real sample rate parsing
This commit is contained in:
parent
67e7f4818f
commit
5cd5f83d8d
|
@ -221,7 +221,7 @@ ngx_rtmp_codec_av(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h,
|
|||
* 3 bytes until 18-22 bits of AAC header */
|
||||
if (in->buf->last - in->buf->pos >= 5) {
|
||||
ctx->aac_sample_rate = aac_sample_rates[
|
||||
(in->buf->pos[4] >> 2) & 0xff];
|
||||
(in->buf->pos[4] >> 2) & 0xf];
|
||||
ctx->sample_rate = ctx->aac_sample_rate;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue