dca: allocate a secondary buffer for extra channels when downmixing
authorJustin Ruggles <justin.ruggles@gmail.com>
Thu, 11 Oct 2012 18:21:56 +0000 (14:21 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 13 Oct 2012 04:07:10 +0000 (00:07 -0400)
commit61d5313d94c9e6a86d599de781f287b577b7fe11
treef5cb2b79cd2d5a4cfa56ee621f1a27cce9680e3e
parenta77f01c725296321936ef671eff1a8bd2ad96f0a
dca: allocate a secondary buffer for extra channels when downmixing

The output AVFrame buffer only has data for the downmix channels.
Fixes a segfault when decoding dca with request_channels == 2.
libavcodec/dcadec.c