1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

ac3dec: make drc_scale exponentially

The a52 spec suggests that "partial compression" should scale the
drc value in this manner.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
John Stebbins 2013-11-20 09:26:45 -08:00 committed by Anton Khirnov
parent 37a749012a
commit c9ca220ef2

View File

@ -756,8 +756,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;
}