From fb8c25afcc0a589225443ed304676a8535cdb370 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 10 Apr 2004 04:13:37 +0000 Subject: fix channel swapping reported by Peter Antypas CVS patchset: 6373 CVS date: 2004/04/10 04:13:37 --- src/demuxers/demux_wav.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/demuxers/demux_wav.c b/src/demuxers/demux_wav.c index 9f5d9a7f9..bba317306 100644 --- a/src/demuxers/demux_wav.c +++ b/src/demuxers/demux_wav.c @@ -22,7 +22,7 @@ * MS WAV File Demuxer by Mike Melanson (melanson@pcisys.net) * based on WAV specs that are available far and wide * - * $Id: demux_wav.c,v 1.54 2004/01/09 01:26:33 miguelfreitas Exp $ + * $Id: demux_wav.c,v 1.55 2004/04/10 04:13:37 miguelfreitas Exp $ */ #ifdef HAVE_CONFIG_H @@ -142,6 +142,9 @@ static int open_wav_file(demux_wav_t *this) { free (this->wave); return 0; } + /* rewind the amount we just read */ + this->input->seek(this->input, -6, SEEK_CUR); + if (chunk_preamble[0] == 0x72 && chunk_preamble[1] == 0xf8 && chunk_preamble[2] == 0x1f && -- cgit v1.2.3