[vlc-commits] trivial: don't copy mono to center, only to stereo

Thomas Guillem git at videolan.org
Tue Oct 25 13:33:08 CEST 2016


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Oct 25 12:57:59 2016 +0200| [927a9742cbfb18d719c95ff9b4ca71d6368484a8] | committer: Thomas Guillem

trivial: don't copy mono to center, only to stereo

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=927a9742cbfb18d719c95ff9b4ca71d6368484a8
---

 modules/audio_filter/channel_mixer/trivial.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/audio_filter/channel_mixer/trivial.c b/modules/audio_filter/channel_mixer/trivial.c
index 734f585..48fa84f 100644
--- a/modules/audio_filter/channel_mixer/trivial.c
+++ b/modules/audio_filter/channel_mixer/trivial.c
@@ -283,8 +283,8 @@ static int Create( vlc_object_t *p_this )
 
         if( aout_FormatNbChannels( infmt ) == 1 )
         {
-            /* Input is mono, copy the mono channel to Left,Right,Centers */
-            if( i_chan & ( AOUT_CHANS_FRONT|AOUT_CHANS_CENTER ) )
+            /* Input is mono, copy the mono channel to Left,Right */
+            if( i_chan & AOUT_CHANS_FRONT )
                 channel_map[i_dst_idx] = 0;
             else
                 channel_map[i_dst_idx] = -1;



More information about the vlc-commits mailing list