diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-09 19:57:58 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-09 19:58:07 +0100 |
commit | 785066ae8aaf0c241fb94c74fadf61ae62c34530 (patch) | |
tree | 6b25cde3b22b3015e6a045cbbe2a7f1c449dfcd6 | |
parent | 7a901eb33af6a079d0ce4045c64eda858884f861 (diff) | |
parent | c9ca220ef26e36abd22085e6fa156c0dbc43bbf0 (diff) | |
download | ffmpeg-785066ae8aaf0c241fb94c74fadf61ae62c34530.tar.gz |
Merge commit 'c9ca220ef26e36abd22085e6fa156c0dbc43bbf0'
* commit 'c9ca220ef26e36abd22085e6fa156c0dbc43bbf0':
ac3dec: make drc_scale exponentially
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/ac3dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 2a5cee17ed..1995412cdc 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -760,8 +760,8 @@ static int decode_audio_block(AC3DecodeContext *s, int blk) i = !s->channel_mode; do { if (get_bits1(gbc)) { - s->dynamic_range[i] = ((dynamic_range_tab[get_bits(gbc, 8)] - 1.0) * - s->drc_scale) + 1.0; + s->dynamic_range[i] = powf(dynamic_range_tab[get_bits(gbc, 8)], + s->drc_scale); } else if (blk == 0) { s->dynamic_range[i] = 1.0f; } |