1
mirror of https://github.com/mpv-player/mpv synced 2024-10-06 14:54:02 +02:00

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
This commit is contained in:
arpi 2003-01-19 16:49:02 +00:00
parent 7fbff1ea97
commit 40789473d2

View File

@ -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;