[FFmpeg-devel] [PATCH] Reduce stack usage in MP3 decoding
Vitor Sessak
vitor1001
Thu Nov 5 00:33:43 CET 2009
Michael Niedermayer wrote:
> On Tue, Nov 03, 2009 at 12:51:02AM +0100, Vitor Sessak wrote:
>> Hi,
>>
>> According to M?ns, mp_decode_layer3() use more than 10kb stack space.
>> Since I expect MP3 decoding to work even on very low-end systems, I think
>> reducing its stack usage makes sense.
>>
>> -Vitor
>
>> mpegaudio.h | 21 ++++++++++++++++++++-
>> mpegaudiodec.c | 36 ++++++++----------------------------
>> 2 files changed, 28 insertions(+), 29 deletions(-)
>> 0305da6a4047d69ec03b56489fc13458c44752b3 mp3_stack.diff
>
> ok if a benchmark indicates no slowdown
I've benchmarked it and found no measurable slowdown, so applied.
-Vitor
More information about the ffmpeg-devel
mailing list