[FFmpeg-devel] MPADecodeContext on stack

Andreas Öman andreas
Thu Jan 22 08:22:54 CET 2009

M?ns Rullg?rd wrote:
> Michael Niedermayer <michaelni at gmx.at> writes:
>> On Mon, Jan 19, 2009 at 05:56:54PM +0100, Andreas ?man wrote:
>>> Hi
>>> MPADecodeContext is allocated on the stack at two places:
>>> libavformat/mp3.c
>>> libavcodec/mpegaudio_parser.c
>>> sizeof(MPADecodeContext) = ~23k
>>> This is, by far, the biggest stack consumer in ffmpeg.
>> i do not belive this entirely
> You believe correctly.  Here's a list of stack offenders on ARM:

Aw, seems i missed two things.

a) I only had decoders compiled in :)
b) My analysis only caught those where framesize <32k

More information about the ffmpeg-devel mailing list