diff options
author | waker <wakeroid@gmail.com> | 2011-04-17 10:51:41 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-17 10:51:41 +0200 |
commit | 1ce3d7ae1cbd88ca0525d8770a16ca3873d7ae58 (patch) | |
tree | 44f0a9d3c97fcc7eb9bc0fcd056f0bf0edf1c3a2 /plugins/aac | |
parent | 0f3818ac8956465965f7c3e78f65326663f857c9 (diff) |
fixed aac channelmap
Diffstat (limited to 'plugins/aac')
-rw-r--r-- | plugins/aac/aac.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/aac/aac.c b/plugins/aac/aac.c index 33418593..6e52c53a 100644 --- a/plugins/aac/aac.c +++ b/plugins/aac/aac.c @@ -763,6 +763,10 @@ aac_read (DB_fileinfo_t *_info, char *bytes, int size) { break; } } + for (i = 0; i < _info->fmt.channels; i++) { + trace ("%d ", info->remap[i]); + } + trace ("\n"); if (info->remap[0] == -1) { info->remap[0] = 0; } @@ -774,7 +778,7 @@ aac_read (DB_fileinfo_t *_info, char *bytes, int size) { for (i = 0; i < n; i++) { for (j = 0; j < _info->fmt.channels; j++) { - ((int16_t *)bytes)[info->remap[j]] = ((int16_t *)src)[j]; + ((int16_t *)bytes)[j] = ((int16_t *)src)[info->remap[j]]; } src += samplesize; bytes += samplesize; |