[soc]: r1738 - eac3/ac3_parser.c
Author: jbr Date: Tue Jan 1 00:30:37 2008 New Revision: 1738 Log: fix bitrate calculation for E-AC3 Modified: eac3/ac3_parser.c Modified: eac3/ac3_parser.c ============================================================================== --- eac3/ac3_parser.c (original) +++ eac3/ac3_parser.c Tue Jan 1 00:30:37 2008 @@ -108,7 +108,7 @@ int ff_ac3_parse_header(const uint8_t bu hdr->channel_mode = get_bits(&gbc, 3); hdr->lfe_on = get_bits1(&gbc); - hdr->bit_rate = (uint32_t)(16.0 * hdr->frame_size * hdr->sample_rate / + hdr->bit_rate = (uint32_t)(8.0 * hdr->frame_size * hdr->sample_rate / (hdr->num_blocks * 256.0)); hdr->channels = ff_ac3_channels_tab[hdr->channel_mode] + hdr->lfe_on; }
participants (1)
-
jbr