diff options
author | Johns <johns98@gmx.net> | 2012-02-09 00:46:02 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-02-09 00:46:02 +0100 |
commit | ced54a5cf15e49c3da6baed3ad2a0758d2897735 (patch) | |
tree | bb3864769171657d322cd2b351a50f14ced188c3 /codec.c | |
parent | 08246b5ac347b5497cf40e8efb4e56a14d8d38aa (diff) | |
download | vdr-plugin-softhddevice-ced54a5cf15e49c3da6baed3ad2a0758d2897735.tar.gz vdr-plugin-softhddevice-ced54a5cf15e49c3da6baed3ad2a0758d2897735.tar.bz2 |
Fix bug: LFE moved to wrong position.
Diffstat (limited to 'codec.c')
-rw-r--r-- | codec.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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; |