[FFmpeg-cvslog] audio_mix: fix channel order in mix_1_to_2_fltp_flt_c

Anton Khirnov git at videolan.org
Sun Oct 13 07:00:08 CEST 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Oct  2 16:40:02 2013 +0200| [df6737a55f5dc7c0ae5272bc5fa6182836d5481c] | committer: Anton Khirnov

audio_mix: fix channel order in mix_1_to_2_fltp_flt_c

CC:libav-stable at libav.org

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=df6737a55f5dc7c0ae5272bc5fa6182836d5481c
---

 libavresample/audio_mix.c |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/libavresample/audio_mix.c b/libavresample/audio_mix.c
index e6f9417..073609e 100644
--- a/libavresample/audio_mix.c
+++ b/libavresample/audio_mix.c
@@ -201,23 +201,23 @@ static void mix_1_to_2_fltp_flt_c(float **samples, float **matrix, int len,
 
     while (len > 4) {
         v = *src++;
-        *dst0++ = v * m1;
-        *dst1++ = v * m0;
+        *dst0++ = v * m0;
+        *dst1++ = v * m1;
         v = *src++;
-        *dst0++ = v * m1;
-        *dst1++ = v * m0;
+        *dst0++ = v * m0;
+        *dst1++ = v * m1;
         v = *src++;
-        *dst0++ = v * m1;
-        *dst1++ = v * m0;
+        *dst0++ = v * m0;
+        *dst1++ = v * m1;
         v = *src++;
-        *dst0++ = v * m1;
-        *dst1++ = v * m0;
+        *dst0++ = v * m0;
+        *dst1++ = v * m1;
         len -= 4;
     }
     while (len > 0) {
         v = *src++;
-        *dst0++ = v * m1;
-        *dst1++ = v * m0;
+        *dst0++ = v * m0;
+        *dst1++ = v * m1;
         len--;
     }
 }



More information about the ffmpeg-cvslog mailing list