[FFmpeg-cvslog] dcadec: skip QMF on unused channels

Michael Niedermayer git at videolan.org
Mon Oct 29 06:18:06 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Oct 29 05:21:47 2012 +0100| [b4e6265136dd2f4c89467f8fe0ae8a5374bb7b6e] | committer: Michael Niedermayer

dcadec: skip QMF on unused channels

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b4e6265136dd2f4c89467f8fe0ae8a5374bb7b6e
---

 libavcodec/dcadec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/dcadec.c b/libavcodec/dcadec.c
index 42f1eed..d35cc3f 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] */);



More information about the ffmpeg-cvslog mailing list