summaryrefslogtreecommitdiffstats
path: root/libfaad2/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'libfaad2/output.c')
-rw-r--r--libfaad2/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfaad2/output.c b/libfaad2/output.c
index 792909c146..49f4e90c8f 100644
--- a/libfaad2/output.c
+++ b/libfaad2/output.c
@@ -589,7 +589,7 @@ void* output_to_PCM(NeAACDecHandle hDecoder,
{
for (ch = 0; ch < channels; ch++)
{
- int32_t tmp = input[ch][i];
+ int32_t tmp = input[hDecoder->internal_channel[ch]][i];
tmp += (1 << (REAL_BITS-1));
tmp >>= REAL_BITS;
if ((tmp+0x8000) & ~0xffff) tmp = ~(tmp>>31)-0x8000;