Commit 785066ae authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'c9ca220e'

* commit 'c9ca220e':
  ac3dec: make drc_scale exponentially
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 7a901eb3 c9ca220e
...@@ -760,8 +760,8 @@ static int decode_audio_block(AC3DecodeContext *s, int blk) ...@@ -760,8 +760,8 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
i = !s->channel_mode; i = !s->channel_mode;
do { do {
if (get_bits1(gbc)) { if (get_bits1(gbc)) {
s->dynamic_range[i] = ((dynamic_range_tab[get_bits(gbc, 8)] - 1.0) * s->dynamic_range[i] = powf(dynamic_range_tab[get_bits(gbc, 8)],
s->drc_scale) + 1.0; s->drc_scale);
} else if (blk == 0) { } else if (blk == 0) {
s->dynamic_range[i] = 1.0f; s->dynamic_range[i] = 1.0f;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment