Browse files

fixed AAC real sample rate parsing

  • Loading branch information...
1 parent 67e7f48 commit 5cd5f83d8d919bca5ec2827785606df837c30189 @arut committed Oct 12, 2012
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;
}

0 comments on commit 5cd5f83

Please sign in to comment.