From ced54a5cf15e49c3da6baed3ad2a0758d2897735 Mon Sep 17 00:00:00 2001 From: Johns Date: Thu, 9 Feb 2012 00:46:02 +0100 Subject: Fix bug: LFE moved to wrong position. --- codec.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'codec.c') diff --git a/codec.c b/codec.c index 434203a..c27fd92 100644 --- a/codec.c +++ b/codec.c @@ -770,9 +770,9 @@ static void CodecReorderAudioFrame(int16_t * buf, int size, int channels) size /= 2; for (i = 0; i < size; i += 6) { c = buf[i + 2]; - ls = buf[i + 3]; - rs = buf[i + 4]; - lfe = buf[i + 5]; + lfe = buf[i + 3]; + ls = buf[i + 4]; + rs = buf[i + 5]; buf[i + 2] = ls; buf[i + 3] = rs; buf[i + 4] = c; @@ -783,9 +783,9 @@ static void CodecReorderAudioFrame(int16_t * buf, int size, int channels) size /= 2; for (i = 0; i < size; i += 8) { c = buf[i + 2]; - ls = buf[i + 3]; - rs = buf[i + 4]; - lfe = buf[i + 5]; + lfe = buf[i + 3]; + ls = buf[i + 4]; + rs = buf[i + 5]; buf[i + 2] = ls; buf[i + 3] = rs; buf[i + 4] = c; -- cgit v1.2.3