diff options
author | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2001-09-01 01:51:50 +0000 |
---|---|---|
committer | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2001-09-01 01:51:50 +0000 |
commit | 1348f27fcf56857713eeb2ee7cf8e20dde98e3be (patch) | |
tree | 587c29942a93ee718cf0ad9f621acfff7ed97286 /src/demuxers | |
parent | ec36f886cce3ca43625dd9e9c8273e5eac30b97c (diff) | |
download | xine-lib-1348f27fcf56857713eeb2ee7cf8e20dde98e3be.tar.gz xine-lib-1348f27fcf56857713eeb2ee7cf8e20dde98e3be.tar.bz2 |
Better rate info passing.
Uses decoder_info[1..3] for rate, bits, channels.
Info now passed from demux_avi to liblpcm.
CVS patchset: 535
CVS date: 2001/09/01 01:51:50
Diffstat (limited to 'src/demuxers')
-rw-r--r-- | src/demuxers/demux_avi.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c index 4a138c001..8e7c96044 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.29 2001/08/31 17:57:54 jkeil Exp $ + * $Id: demux_avi.c,v 1.30 2001/09/01 01:51:50 jcdutton Exp $ * * demultiplexer for avi streams * @@ -726,6 +726,9 @@ static int demux_avi_next (demux_avi_t *this) { buf->input_pos = this->input->get_current_pos(this->input); buf->type = this->avi->audio_type; + buf->decoder_info[1] = this->avi->a_rate; /* Audio Rate */ + buf->decoder_info[2] = this->avi->a_bits; /* Audio bits */ + buf->decoder_info[3] = this->avi->a_chans; /* Audio channels */ if(this->audio_fifo) { this->audio_fifo->put (this->audio_fifo, buf); @@ -1011,6 +1014,9 @@ static void demux_avi_start (demux_plugin_t *this_gen, buf->size = sizeof (this->avi->wavex); buf->type = this->avi->audio_type; buf->decoder_info[0] = 0; /* first package, containing wavex */ + buf->decoder_info[1] = this->avi->a_rate; /* Audio Rate */ + buf->decoder_info[2] = this->avi->a_bits; /* Audio bits */ + buf->decoder_info[3] = this->avi->a_chans; /* Audio bits */ this->audio_fifo->put (this->audio_fifo, buf); } |