Mercurial > libavcodec.hg
changeset 7016:b514562e0aef libavcodec
set default mix levels regardless of bitstream id
author | jbr |
---|---|
date | Sat, 07 Jun 2008 22:29:45 +0000 |
parents | d9ac2c5a5d89 |
children | 60fd9ae9540e |
files | ac3_parser.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ac3_parser.c Sat Jun 07 22:29:38 2008 +0000 +++ b/ac3_parser.c Sat Jun 07 22:29:45 2008 +0000 @@ -63,6 +63,10 @@ hdr->num_blocks = 6; + /* set default mix levels */ + hdr->center_mix_level = 3; // -4.5dB + hdr->surround_mix_level = 4; // -6.0dB + if(hdr->bitstream_id <= 10) { /* Normal AC-3 */ hdr->crc1 = get_bits(gbc, 16); @@ -79,10 +83,6 @@ skip_bits(gbc, 3); // skip bitstream mode hdr->channel_mode = get_bits(gbc, 3); - /* set default mix levels */ - hdr->center_mix_level = 3; // -4.5dB - hdr->surround_mix_level = 4; // -6.0dB - if(hdr->channel_mode == AC3_CHMODE_STEREO) { skip_bits(gbc, 2); // skip dsurmod } else {