summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/voicefont.c5
-rw-r--r--tools/wavtrim.c1
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/voicefont.c b/tools/voicefont.c
index 9e5603e458..4da67fabed 100644
--- a/tools/voicefont.c
+++ b/tools/voicefont.c
@@ -217,6 +217,7 @@ int voicefont(FILE* voicefontids,int targetnum,char* filedir, FILE* output)
217#ifndef RBUTIL 217#ifndef RBUTIL
218int main (int argc, char** argv) 218int main (int argc, char** argv)
219{ 219{
220 FILE *ids, *output;
220 221
221 if (argc < 2) 222 if (argc < 2)
222 { 223 {
@@ -228,14 +229,14 @@ int main (int argc, char** argv)
228 return -1; 229 return -1;
229 } 230 }
230 231
231 FILE* ids = fopen(argv[1], "r"); 232 ids = fopen(argv[1], "r");
232 if (ids == NULL) 233 if (ids == NULL)
233 { 234 {
234 printf("Error opening language file %s\n", argv[1]); 235 printf("Error opening language file %s\n", argv[1]);
235 return -2; 236 return -2;
236 } 237 }
237 238
238 FILE* output = fopen(argv[4], "wb"); 239 output = fopen(argv[4], "wb");
239 if (output == NULL) 240 if (output == NULL)
240 { 241 {
241 printf("Error opening output file %s\n", argv[4]); 242 printf("Error opening output file %s\n", argv[4]);
diff --git a/tools/wavtrim.c b/tools/wavtrim.c
index 86fec7e256..b82f270c8d 100644
--- a/tools/wavtrim.c
+++ b/tools/wavtrim.c
@@ -130,6 +130,7 @@ int wavtrim(char * filename, int maxsilence ,char* errstring,int errsize)
130 } 130 }
131 131
132 datalen = Read32(pBuf+datapos-4); 132 datalen = Read32(pBuf+datapos-4);
133 skip_head = skip_tail = 0;
133 134
134 sps = Read32(pBuf + 24); 135 sps = Read32(pBuf + 24);
135 pad_head = sps * 10 / 1000; /* 10 ms */ 136 pad_head = sps * 10 / 1000; /* 10 ms */