[FFmpeg-soc] [soc]: r1738 - eac3/ac3_parser.c

jbr subversion at mplayerhq.hu
Tue Jan 1 00:30:38 CET 2008


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;
     }



More information about the FFmpeg-soc mailing list