aacenc: fix out of array writes
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 4 Oct 2012 20:54:29 +0000 (22:54 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 3 Dec 2012 18:36:15 +0000 (19:36 +0100)
commite2935721e00a6eb60fadb0839d3e24591a33a359
treebfb69710566911dbed5ab1dbc4910b2e462277dc
parentce433996d7f0dfa8d20aea01bfdb1930b7a1426c
aacenc: fix out of array writes

The value used in allocation is based on a estimate of the
maximum size of the spectral coefficients multiplied with 2
and rounded up. The exact or a tighter limit should be
found and used instead. But this issue shouldnt be left
open until someone works on that.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d56834201bf7511ed497e956fb7ff78d49454b10)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/aacenc.c