# HG changeset patch # User andoma # Date 1232712572 0 # Node ID 39f62ce83e5a5a921a9fa206924f2a3fb4d9500c # Parent ed5196e6e112ebcca082e5591f61a9984d5632e3 Avoid allocating MPADecodeContext on stack. Instead move relevant fields into MPADecodeHeader and use it where appropriate. diff -r ed5196e6e112 -r 39f62ce83e5a mp3.c --- a/mp3.c Thu Jan 22 23:35:31 2009 +0000 +++ b/mp3.c Fri Jan 23 12:09:32 2009 +0000 @@ -395,7 +395,7 @@ uint32_t v, spf; int frames = -1; /* Total number of frames in file */ const int64_t xing_offtbl[2][2] = {{32, 17}, {17,9}}; - MPADecodeContext c; + MPADecodeHeader c; int vbrtag_size = 0; v = get_be32(s->pb);