From 40789473d215bf7352de8d8acf69c0062485a474 Mon Sep 17 00:00:00 2001 From: arpi Date: Sun, 19 Jan 2003 16:49:02 +0000 Subject: 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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9027 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libao2/ao_pcm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libao2/ao_pcm.c') 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; -- cgit v1.2.3