diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2003-05-29 17:54:16 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2003-05-29 17:54:16 +0000 |
commit | cdd6c5c40e55742c273d2dbfff3ac53ccd0d98c0 (patch) | |
tree | ca2e8476ca438188d2c3be474909870b47129dda | |
parent | 3bd94361cefad16ce1a6c72a80f97b9a5bbc8209 (diff) | |
download | xine-lib-cdd6c5c40e55742c273d2dbfff3ac53ccd0d98c0.tar.gz xine-lib-cdd6c5c40e55742c273d2dbfff3ac53ccd0d98c0.tar.bz2 |
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
-rw-r--r-- | src/demuxers/demux_avi.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; } /* |