Commit 673a97ac authored by jbr's avatar jbr

ac3dec: apply dynamic range compression to correct channels in dual-mono mode.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20533 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fcb8491f
......@@ -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];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment