Fixed a segfault in the DCA decoder with corrupted streams.
authorLaurent Aimar <fenrir@videolan.org>
Fri, 26 Feb 2010 18:50:01 +0000 (18:50 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 26 Feb 2010 18:50:01 +0000 (18:50 +0000)
commit4e06acbde4a75cf9aa6a3e46dd3a7c6ed1ecfb8f
treec68c067b3e2f25d8b4fa7cc9322479bcfdf132c0
parent4784b0922febe020c31e0fc6b37dd8b4d86b28f0
Fixed a segfault in the DCA decoder with corrupted streams.

 It happens when the number of channels defined by DCAContext:acmod is lower
than DCAContext:prim_channels. In this case, dca_subsubframe() will call
qmf_32_subbands() using s->channel_order_tab[] entries equal to -1.

Originally committed as revision 22083 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/dca.c