[vlc-devel] commit: Fixed downmixing to mono (close #2728). (Laurent Aimar )
git version control
git at videolan.org
Wed May 13 22:12:35 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Wed May 13 21:59:13 2009 +0200| [105926ff1c3454cfa75fc55d0bc0061c1e4a9b9d] | committer: Laurent Aimar
Fixed downmixing to mono (close #2728).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=105926ff1c3454cfa75fc55d0bc0061c1e4a9b9d
---
modules/audio_filter/channel_mixer/simple.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/audio_filter/channel_mixer/simple.c b/modules/audio_filter/channel_mixer/simple.c
index 40edd92..c6cf8b0 100644
--- a/modules/audio_filter/channel_mixer/simple.c
+++ b/modules/audio_filter/channel_mixer/simple.c
@@ -102,7 +102,8 @@ static void DoWork( aout_instance_t * p_aout, aout_filter_t * p_filter,
const bool b_input_7_0 = (i_input_physical & ~AOUT_CHAN_LFE) == AOUT_CHANS_7_0;
const bool b_input_5_0 = !b_input_7_0 &&
- (i_input_physical & (AOUT_CHANS_5_0|AOUT_CHANS_5_0_MIDDLE));
+ ( (i_input_physical & AOUT_CHANS_5_0) == AOUT_CHANS_5_0 ||
+ (i_input_physical & AOUT_CHANS_5_0_MIDDLE) == AOUT_CHANS_5_0_MIDDLE );
int i_input_nb = aout_FormatNbChannels( &p_filter->input );
int i_output_nb = aout_FormatNbChannels( &p_filter->output );
float *p_dest = (float *)p_out_buf->p_buffer;
More information about the vlc-devel
mailing list