Mercurial > libavcodec.hg
changeset 10529:f8fc0a56745e libavcodec
ac3dec: apply dynamic range compression to correct channels in dual-mono mode.
author | jbr |
---|---|
date | Sat, 14 Nov 2009 00:25:48 +0000 |
parents | 6fe84da648e2 |
children | d428e57f14c6 |
files | ac3dec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ac3dec.c Fri Nov 13 18:33:28 2009 +0000 +++ b/ac3dec.c Sat Nov 14 00:25:48 2009 +0000 @@ -1167,7 +1167,7 @@ for(ch=1; ch<=s->channels; ch++) { float gain = s->mul_bias / 4194304.0f; if(s->channel_mode == AC3_CHMODE_DUALMONO) { - gain *= s->dynamic_range[ch-1]; + gain *= s->dynamic_range[2-ch]; } else { gain *= s->dynamic_range[0]; }