From cdd6c5c40e55742c273d2dbfff3ac53ccd0d98c0 Mon Sep 17 00:00:00 2001 From: James Stembridge Date: Thu, 29 May 2003 17:54:16 +0000 Subject: Set audio fourcc in stream info if we know what it is, ie there is only one audio stream CVS patchset: 4985 CVS date: 2003/05/29 17:54:16 --- src/demuxers/demux_avi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/demuxers') diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c index e866ec2aa..5d9726cec 100644 --- a/src/demuxers/demux_avi.c +++ b/src/demuxers/demux_avi.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: demux_avi.c,v 1.157 2003/05/29 16:51:30 jstembridge Exp $ + * $Id: demux_avi.c,v 1.158 2003/05/29 17:54:16 jstembridge Exp $ * * demultiplexer for avi streams * @@ -1474,6 +1474,10 @@ static void demux_avi_send_headers (demux_plugin_t *this_gen) { buf->decoder_info[3] = a->wavex->nChannels; /* Audio bits */ this->audio_fifo->put (this->audio_fifo, buf); } + + if(this->avi->n_audio == 1) + this->stream->stream_info[XINE_STREAM_INFO_AUDIO_FOURCC] = + this->avi->audio[0]->wavex->wFormatTag; } /* -- cgit v1.2.3