diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2008-01-09 12:39:06 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2008-01-09 12:39:06 +0000 |
commit | d86a9cac5c48b681b78d85fe11831cbf89654826 (patch) | |
tree | 19f8509b2c10676e885f3ebe6221d540f2ee2abc | |
parent | e66ddd754fba4171e3fd99c5a1b911ed3f9faa3f (diff) | |
download | rockbox-d86a9cac5c48b681b78d85fe11831cbf89654826.tar.gz rockbox-d86a9cac5c48b681b78d85fe11831cbf89654826.zip |
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
-rw-r--r-- | apps/plugins/vbrfix.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |