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

Anton Khirnov git at videolan.org
Sun Jan 12 16:57:20 CET 2014


ffmpeg | branch: release/1.1 | Anton Khirnov <anton at khirnov.net> | Wed Oct  2 16:40:02 2013 +0200| [481e55eba7a7942a0497e5bb4191cb1971e19760] | committer: Reinhard Tartler

audio_mix: fix channel order in mix_1_to_2_fltp_flt_c

CC:libav-stable at libav.org
(cherry picked from commit df6737a55f5dc7c0ae5272bc5fa6182836d5481c)
Signed-off-by: Reinhard Tartler <siretart at tauware.de>

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

 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 c056028..f737a30 100644
--- a/libavresample/audio_mix.c
+++ b/libavresample/audio_mix.c
@@ -195,23 +195,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