Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed AAC real sample rate parsing

  • Loading branch information...
commit 5cd5f83d8d919bca5ec2827785606df837c30189 1 parent 67e7f48
@arut authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ngx_rtmp_codec_module.c
View
2  ngx_rtmp_codec_module.c
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.