summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--codec.c12
2 files changed, 7 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 2a547f2..fc9167c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
User johns
Date:
+ Fix bug: LFE moved to wrong position.
Guard suspend/resume against multiple calls.
Add support for AAC LATM audio streams.
Fix bug: alsa and ffmpeg use different channel layout.
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;