summaryrefslogtreecommitdiffstats
path: root/libao2/ao_pcm.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-19 16:49:02 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-19 16:49:02 +0000
commit40789473d215bf7352de8d8acf69c0062485a474 (patch)
tree496eb46c8da64e6ecfdebb8a5ab3ce8c6074722b /libao2/ao_pcm.c
parent7fbff1ea9714270a4eaa0b8f9233f5e1d7dfa69f (diff)
downloadmpv-40789473d215bf7352de8d8acf69c0062485a474.tar.bz2
mpv-40789473d215bf7352de8d8acf69c0062485a474.tar.xz
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@tiscali.fr> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9027 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/ao_pcm.c')
-rw-r--r--libao2/ao_pcm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libao2/ao_pcm.c b/libao2/ao_pcm.c
index ae7490d74f..dda741bd79 100644
--- a/libao2/ao_pcm.c
+++ b/libao2/ao_pcm.c
@@ -50,7 +50,8 @@ struct WaveHeader
/* 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 @@ static struct WaveHeader wavhdr = {
le2me_16(4),
le2me_16(16),
le2me_32(WAV_ID_DATA),
- le2me_32(0x00000000)
+ le2me_32(0x7ffff000)
};
static FILE *fp = NULL;