From d86a9cac5c48b681b78d85fe11831cbf89654826 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Wed, 9 Jan 2008 12:39:06 +0000 Subject: Reduce stack usage in the vbrfix plugin. Fixes FS#8402. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16031 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/vbrfix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/vbrfix.c b/apps/plugins/vbrfix.c index 823e166b39..665a2aae5e 100644 --- a/apps/plugins/vbrfix.c +++ b/apps/plugins/vbrfix.c @@ -24,6 +24,8 @@ static struct plugin_api* rb; static char *audiobuf; static ssize_t audiobuflen; +unsigned char xingbuf[1500]; +char tmpname[MAX_PATH]; static void xingupdate(int percent) { @@ -39,7 +41,6 @@ static int insert_data_in_file(char *fname, int fpos, char *buf, int num_bytes) int readlen; int rc; int orig_fd, fd; - char tmpname[MAX_PATH]; rb->snprintf(tmpname, MAX_PATH, "%s.tmp", fname); @@ -127,7 +128,6 @@ static const unsigned char empty_id3_header[] = static bool vbr_fix(char *selected_file) { - unsigned char xingbuf[1500]; struct mp3entry entry; int fd; int rc; -- cgit v1.2.3