aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-29 05:21:47 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-10-29 05:21:47 +0100
commitb4e6265136dd2f4c89467f8fe0ae8a5374bb7b6e (patch)
tree0db9b6f5483ffe80a4a4f58ad0802eca4fb77bda /libavcodec
parenta3886ea3c5947ca05bfe01b053d9ce2f9725d9eb (diff)
downloadffmpeg-b4e6265136dd2f4c89467f8fe0ae8a5374bb7b6e.tar.gz
dcadec: skip QMF on unused channels
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dcadec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index 42f1eed6f0..d35cc3f976 100644
--- a/libavcodec/dcadec.c
+++ b/libavcodec/dcadec.c
@@ -1442,6 +1442,7 @@ static int dca_filter_channels(DCAContext *s, int block_index)
for (k = 0; k < s->prim_channels; k++) {
/* static float pcm_to_double[8] = { 32768.0, 32768.0, 524288.0, 524288.0,
0, 8388608.0, 8388608.0 };*/
+ if(s->channel_order_tab[k] >= 0)
qmf_32_subbands(s, k, subband_samples[k],
s->samples_chanptr[s->channel_order_tab[k]],
M_SQRT1_2 / 32768.0 /* pcm_to_double[s->source_pcm_res] */);