summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_wav.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers/demux_wav.c')
-rw-r--r--src/demuxers/demux_wav.c39
1 files changed, 2 insertions, 37 deletions
diff --git a/src/demuxers/demux_wav.c b/src/demuxers/demux_wav.c
index 48074aa3c..e23f43aa5 100644
--- a/src/demuxers/demux_wav.c
+++ b/src/demuxers/demux_wav.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2001-2003 the xine project
+ * Copyright (C) 2001-2005 the xine project
*
* This file is part of xine, a free video player.
*
@@ -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.62 2005/05/28 09:34:53 jstembridge Exp $
+ * $Id: demux_wav.c,v 1.63 2005/06/04 20:29:16 jstembridge Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -146,31 +146,6 @@ static int open_wav_file(demux_wav_t *this) {
this->input->seek(this->input, chunk_size, SEEK_CUR);
}
}
- if (this->audio_type == BUF_AUDIO_LPCM_LE) {
- if (this->input->read(this->input, chunk_preamble, 6) != 6 ) {
- 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 &&
- chunk_preamble[3] == 0x4e ) {
- this->audio_type = BUF_AUDIO_DNET;
- }
-#if 0
- printf("Preamble=%02x %02x %02x %02x %02x %02x\n",
- chunk_preamble[0],
- chunk_preamble[1],
- chunk_preamble[2],
- chunk_preamble[3],
- chunk_preamble[4],
- chunk_preamble[5]);
-#endif
-
- }
return 1;
}
@@ -235,16 +210,6 @@ static int demux_wav_send_chunk(demux_plugin_t *this_gen) {
printf("\n");
#endif
- if (this->audio_type == BUF_AUDIO_LPCM_LE) {
- if (buf->content[0] == 0x72 &&
- buf->content[1] == 0xf8 &&
- buf->content[2] == 0x1f &&
- buf->content[3] == 0x4e ) {
- this->audio_type = BUF_AUDIO_DNET;
- }
- } else if (this->audio_type == BUF_AUDIO_DNET) {
- buf->pts=0; /* We don't need pts values for only audio streams. */
- }
#if 0
for(n=0;n<20;n++) {
printf("%x ",buf->content[n]);