summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2004-02-01 06:06:05 +0000
committerMike Melanson <mike@multimedia.cx>2004-02-01 06:06:05 +0000
commit9c1202fd392bb6080b4576818620d35f2b2de9e3 (patch)
treeb09a4c29d1d365fc5feafdc2d04619a3de4dbab0
parentb82221744434a5d2f27dcb36af511adeba74c35e (diff)
downloadxine-lib-9c1202fd392bb6080b4576818620d35f2b2de9e3.tar.gz
xine-lib-9c1202fd392bb6080b4576818620d35f2b2de9e3.tar.bz2
special case to handle Xan DPCM in a AVI file (which will report format
0x1) CVS patchset: 6095 CVS date: 2004/02/01 06:06:05
-rw-r--r--src/demuxers/demux_avi.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c
index 44058480d..1065cc09c 100644
--- a/src/demuxers/demux_avi.c
+++ b/src/demuxers/demux_avi.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000-2003 the xine project
+ * Copyright (C) 2000-2004 the xine project
*
* This file is part of xine, a free video player.
*
@@ -19,7 +19,7 @@
*/
/*
- * $Id: demux_avi.c,v 1.188 2004/01/28 12:58:30 miguelfreitas Exp $
+ * $Id: demux_avi.c,v 1.189 2004/02/01 06:06:05 tmmm Exp $
*
* demultiplexer for avi streams
*
@@ -1856,6 +1856,11 @@ static void demux_avi_send_headers (demux_plugin_t *this_gen) {
xprintf (this->stream->xine, XINE_VERBOSITY_DEBUG, "demux_avi: audio type %s (wFormatTag 0x%x)\n",
_x_buf_audio_name(this->avi->audio[i]->audio_type),
(int)this->avi->audio[i]->wavex->wFormatTag);
+
+ /* special case time: An AVI file encoded with Xan video will have Xan
+ * DPCM audio marked as PCM; hack around this */
+ if (this->avi->video_type == BUF_VIDEO_XXAN)
+ this->avi->audio[i]->audio_type = BUF_AUDIO_XAN_DPCM;
}
_x_stream_info_set(this->stream, XINE_STREAM_INFO_HAS_VIDEO, 1);