[vlc-commits] commit: Fixed reverse stereo mode (close #3755). (Laurent Aimar )

git at videolan.org git at videolan.org
Fri Jun 18 01:07:13 CEST 2010


vlc/vlc-1.1 | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Jun 18 00:17:07 2010 +0200| [a0a45ea144b5744a384ec29fda035dda4a986cd7] | committer: Jean-Baptiste Kempf 

Fixed reverse stereo mode (close #3755).
(cherry picked from commit 5897814445b62d1c87cff47631a340a6b9bd42dc)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/audio_filter/channel_mixer/trivial.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/modules/audio_filter/channel_mixer/trivial.c b/modules/audio_filter/channel_mixer/trivial.c
index 3ecc0dd..b76aa90 100644
--- a/modules/audio_filter/channel_mixer/trivial.c
+++ b/modules/audio_filter/channel_mixer/trivial.c
@@ -161,10 +161,11 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
         int i;
         for ( i = p_in_buf->i_nb_samples; i--; )
         {
-            *p_dest = p_src[1];
-            p_dest++;
-            *p_dest = p_src[0];
-            p_dest++;
+            int32_t i_tmp = p_src[0];
+            p_dest[0] = p_src[1];
+            p_dest[1] = i_tmp;
+
+            p_dest += 2;
             p_src += 2;
         }
     }



More information about the vlc-commits mailing list