dcadec: skip QMF on unused channels
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 29 Oct 2012 04:21:47 +0000 (05:21 +0100)
committerJustin Ruggles <justin.ruggles@gmail.com>
Tue, 27 Nov 2012 03:50:37 +0000 (22:50 -0500)
commit5d47850bbd9ea70f6ab6b8eecaf3992a8c444492
treecdfd6b6e29463e1c41bb0f22553147798a71088f
parent2fe0094e0bf939f563c2600083bee8f183c2763d
dcadec: skip QMF on unused channels

When the extra rear channel is present but unused, the
s->channel_order_tab[] value for that channel is -1. The QMF can be
skipped for the extra channel, and doing so avoids an out-of-array read
on s->samples_chanptr[].

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
libavcodec/dcadec.c