[FFmpeg-cvslog] r20533 - trunk/libavcodec/ac3dec.c
jbr
subversion
Sat Nov 14 01:25:48 CET 2009
Author: jbr
Date: Sat Nov 14 01:25:48 2009
New Revision: 20533
Log:
ac3dec: apply dynamic range compression to correct channels in dual-mono mode.
Modified:
trunk/libavcodec/ac3dec.c
Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c Fri Nov 13 21:24:42 2009 (r20532)
+++ trunk/libavcodec/ac3dec.c Sat Nov 14 01:25:48 2009 (r20533)
@@ -1167,7 +1167,7 @@ static int decode_audio_block(AC3DecodeC
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];
}
More information about the ffmpeg-cvslog
mailing list