aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-11-14 00:25:48 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-11-14 00:25:48 +0000
commit7934cbb3be7a03b1ae7a8a30613a7a75b1e28645 (patch)
treef94b32aad474dba4f02e84c712a6c34352f705eb
parent03279bbea0d9887e5287d4995de5fdabe38221a7 (diff)
downloadffmpeg-7934cbb3be7a03b1ae7a8a30613a7a75b1e28645.tar.gz
ac3dec: apply dynamic range compression to correct channels in dual-mono mode.
Originally committed as revision 20533 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/ac3dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index fa487599e4..82091bc6e3 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -1167,7 +1167,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
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];
}