[FFmpeg-devel] [PATCH] Reduce stack usage in MP3 decoding

Michael Niedermayer michaelni
Wed Nov 4 16:21:01 CET 2009


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091104/0f03b757/attachment.pgp>



More information about the ffmpeg-devel mailing list