aacdec: Fix out of array writes (stack).
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 7 Mar 2012 01:26:29 +0000 (17:26 -0800)
committerAlex Converse <alex.converse@gmail.com>
Fri, 9 Mar 2012 17:47:57 +0000 (09:47 -0800)
commitd53fe096e4d0d0e4db2859e467515de1a0ef91fa
treea3f14c17a6000e32fbb8e33caa137a9c57a77f5f
parent6294d708b8be886767f6181169143c29c975938f
aacdec: Fix out of array writes (stack).

Set the element to channel vector (e2c_vec) size to be the maximum
number of aac channel elements. This makes it slightly larger than it
needs to be because CCEs are never mapped to output channel locations.

Also add a check that all input tags (legal or not) will fit.

Split from FFmpeg commit a8d67efa53dae1d14614e3a7bd4e77e4eab066ab

Signed-off-by: Alex Converse <alex.converse@gmail.com>
libavcodec/aacdec.c