[Julius-cvs 410] CVS update: julius4/libsent/src/wav2mfcc

Back to archive index

sumom****@users***** sumom****@users*****
2009年 5月 15日 (金) 12:22:53 JST


Index: julius4/libsent/src/wav2mfcc/wav2mfcc-pipe.c
diff -u julius4/libsent/src/wav2mfcc/wav2mfcc-pipe.c:1.3 julius4/libsent/src/wav2mfcc/wav2mfcc-pipe.c:1.4
--- julius4/libsent/src/wav2mfcc/wav2mfcc-pipe.c:1.3	Tue Jun 17 10:20:51 2008
+++ julius4/libsent/src/wav2mfcc/wav2mfcc-pipe.c	Fri May 15 12:22:53 2009
@@ -20,7 +20,7 @@
  * @author Akinobu LEE
  * @date   Thu Feb 17 18:12:30 2005
  *
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
  * 
  */
 /*
@@ -582,7 +582,11 @@
 
   jlog("Stat: wav2mfcc-pipe: writing current cepstral data to file \"%s\"\n", filename);
 
-  if ((fd = creat(filename, 0644)) == -1) {
+  if ((fd = open(filename, O_CREAT | O_RDWR
+#ifdef O_BINARY
+		 | O_BINARY
+#endif
+		 , 0644)) == -1) {
     jlog("Error: wav2mfcc-pipe: failed to open \"%s\" to write current cepstral data\n", filename);
     return(FALSE);
   }



Julius-cvs メーリングリストの案内
Back to archive index