diff options
author | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2002-06-16 00:53:39 +0000 |
---|---|---|
committer | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2002-06-16 00:53:39 +0000 |
commit | 32188c096be1108c3e2e7a86111938da82c7863f (patch) | |
tree | da92e2c07e851ba1892223cc3b99306d810e734b /src/demuxers/demux_film.c | |
parent | 3d0ae21c8968ce23b99d5c7dc34cf44f8ef2c061 (diff) | |
download | xine-lib-32188c096be1108c3e2e7a86111938da82c7863f.tar.gz xine-lib-32188c096be1108c3e2e7a86111938da82c7863f.tar.bz2 |
Fix for streams with LPCM audio.
demux_film.c corrected to include decoder_info for sample rate etc. in every buf_element.
Also fix for changing of LPCM format during stream. E.g. DVDs
CVS patchset: 2079
CVS date: 2002/06/16 00:53:39
Diffstat (limited to 'src/demuxers/demux_film.c')
-rw-r--r-- | src/demuxers/demux_film.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/demuxers/demux_film.c b/src/demuxers/demux_film.c index a8ac34c91..67b3db888 100644 --- a/src/demuxers/demux_film.c +++ b/src/demuxers/demux_film.c @@ -21,7 +21,7 @@ * For more information on the FILM file format, visit: * http://www.pcisys.net/~melanson/codecs/ * - * $Id: demux_film.c,v 1.11 2002/06/12 12:22:33 f1rmb Exp $ + * $Id: demux_film.c,v 1.12 2002/06/16 00:53:39 jcdutton Exp $ */ #ifdef HAVE_CONFIG_H @@ -424,6 +424,10 @@ printf ("************ sending new pts\n"); if (!remaining_sample_bytes) buf->decoder_flags |= BUF_FLAG_FRAME_END; + + buf->decoder_info[1] = this->sample_rate; + buf->decoder_info[2] = this->audio_bits; + buf->decoder_info[3] = this->audio_channels; this->audio_fifo->put(this->audio_fifo, buf); } } |