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:
parent
37a749012a
commit
c9ca220ef2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user