[xiph-commits] r13385 - trunk/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Sat Jul 28 15:55:00 PDT 2007
Author: jm
Date: 2007-07-28 15:55:00 -0700 (Sat, 28 Jul 2007)
New Revision: 13385
Modified:
trunk/speex/libspeex/mdf.c
trunk/speex/libspeex/testenc.c
trunk/speex/libspeex/testenc_uwb.c
trunk/speex/libspeex/testenc_wb.c
Log:
Patch by Alexander Chemeris to make testenc* open with rb and wb
Modified: trunk/speex/libspeex/mdf.c
===================================================================
--- trunk/speex/libspeex/mdf.c 2007-07-28 22:54:50 UTC (rev 13384)
+++ trunk/speex/libspeex/mdf.c 2007-07-28 22:55:00 UTC (rev 13385)
@@ -385,9 +385,9 @@
#ifdef DUMP_ECHO_CANCEL_DATA
if (rFile || pFile || oFile)
speex_fatal("Opening dump files twice");
- rFile = fopen("aec_rec.sw", "w");
- pFile = fopen("aec_play.sw", "w");
- oFile = fopen("aec_out.sw", "w");
+ rFile = fopen("aec_rec.sw", "wb");
+ pFile = fopen("aec_play.sw", "wb");
+ oFile = fopen("aec_out.sw", "wb");
#endif
st->frame_size = frame_size;
Modified: trunk/speex/libspeex/testenc.c
===================================================================
--- trunk/speex/libspeex/testenc.c 2007-07-28 22:54:50 UTC (rev 13384)
+++ trunk/speex/libspeex/testenc.c 2007-07-28 22:55:00 UTC (rev 13385)
@@ -74,13 +74,13 @@
exit(1);
}
inFile = argv[1];
- fin = fopen(inFile, "r");
+ fin = fopen(inFile, "rb");
outFile = argv[2];
- fout = fopen(outFile, "w+");
+ fout = fopen(outFile, "wb+");
if (argc==4)
{
bitsFile = argv[3];
- fbits = fopen(bitsFile, "w");
+ fbits = fopen(bitsFile, "wb");
}
speex_bits_init(&bits);
while (!feof(fin))
Modified: trunk/speex/libspeex/testenc_uwb.c
===================================================================
--- trunk/speex/libspeex/testenc_uwb.c 2007-07-28 22:54:50 UTC (rev 13384)
+++ trunk/speex/libspeex/testenc_uwb.c 2007-07-28 22:55:00 UTC (rev 13385)
@@ -69,13 +69,13 @@
exit(1);
}
inFile = argv[1];
- fin = fopen(inFile, "r");
+ fin = fopen(inFile, "rb");
outFile = argv[2];
- fout = fopen(outFile, "w+");
+ fout = fopen(outFile, "wb+");
if (argc==4)
{
bitsFile = argv[3];
- fbits = fopen(bitsFile, "w");
+ fbits = fopen(bitsFile, "wb");
}
speex_bits_init(&bits);
while (!feof(fin))
Modified: trunk/speex/libspeex/testenc_wb.c
===================================================================
--- trunk/speex/libspeex/testenc_wb.c 2007-07-28 22:54:50 UTC (rev 13384)
+++ trunk/speex/libspeex/testenc_wb.c 2007-07-28 22:55:00 UTC (rev 13385)
@@ -74,13 +74,13 @@
exit(1);
}
inFile = argv[1];
- fin = fopen(inFile, "r");
+ fin = fopen(inFile, "rb");
outFile = argv[2];
- fout = fopen(outFile, "w+");
+ fout = fopen(outFile, "wb+");
if (argc==4)
{
bitsFile = argv[3];
- fbits = fopen(bitsFile, "w");
+ fbits = fopen(bitsFile, "wb");
}
speex_bits_init(&bits);
while (!feof(fin))
More information about the commits
mailing list