[Mplayer-cvslog] CVS: main/libao2 ao_pcm.c,1.12,1.13
Arpi of Ize
arpi at mplayerhq.hu
Sun Jan 19 17:49:05 CET 2003
Update of /cvsroot/mplayer/main/libao2
In directory mail:/var/tmp.root/cvs-serv12190/libao2
Modified Files:
ao_pcm.c
Log Message:
When the file is not finished to be written,
it has a temporary length of 0. It is more logical to
write an infinite length. (sox does this)
patch by Alain Daurat <daurat at tiscali.fr>
Index: ao_pcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_pcm.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- ao_pcm.c 2 Nov 2002 21:54:08 -0000 1.12
+++ ao_pcm.c 19 Jan 2003 16:49:02 -0000 1.13
@@ -50,7 +50,8 @@
/* init with default values */
static struct WaveHeader wavhdr = {
le2me_32(WAV_ID_RIFF),
- le2me_32(0x00000000),
+ /* same conventions than in sox/wav.c/wavwritehdr() */
+ le2me_32(0x7ffff024),
le2me_32(WAV_ID_WAVE),
le2me_32(WAV_ID_FMT),
le2me_32(16),
@@ -61,7 +62,7 @@
le2me_16(4),
le2me_16(16),
le2me_32(WAV_ID_DATA),
- le2me_32(0x00000000)
+ le2me_32(0x7ffff000)
};
static FILE *fp = NULL;
More information about the MPlayer-cvslog
mailing list