diff options
author | James Stembridge <jstembridge@users.sourceforge.net> | 2004-01-26 22:33:08 +0000 |
---|---|---|
committer | James Stembridge <jstembridge@users.sourceforge.net> | 2004-01-26 22:33:08 +0000 |
commit | 229558581183265e40767066db5b6aa99c8818b1 (patch) | |
tree | 3d9bebcbc417dcee29acbbfb669c793a9c1969b4 | |
parent | 8f8d5511c56b057b0b73aec0442e990a08300618 (diff) | |
download | xine-lib-229558581183265e40767066db5b6aa99c8818b1.tar.gz xine-lib-229558581183265e40767066db5b6aa99c8818b1.tar.bz2 |
Base required source data size on input number of channels rather than output which can now be different
CVS patchset: 6070
CVS date: 2004/01/26 22:33:08
-rw-r--r-- | src/libfaad/xine_decoder.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libfaad/xine_decoder.c b/src/libfaad/xine_decoder.c index e12a43488..0089d1201 100644 --- a/src/libfaad/xine_decoder.c +++ b/src/libfaad/xine_decoder.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: xine_decoder.c,v 1.29 2004/01/26 20:13:58 jstembridge Exp $ + * $Id: xine_decoder.c,v 1.30 2004/01/26 22:33:08 jstembridge Exp $ * */ @@ -278,6 +278,8 @@ this->num_channels = 2; /* open audio device as needed */ if (!this->output_open) { + this->rec_audio_src_size = this->num_channels * FAAD_MIN_STREAMSIZE; + switch( this->num_channels ) { case 1: this->ao_cap_mode=AO_CAP_MODE_MONO; @@ -303,8 +305,6 @@ this->num_channels = 2; this->bits_per_sample, this->rate, this->ao_cap_mode) ; - - this->rec_audio_src_size = this->num_channels * FAAD_MIN_STREAMSIZE; } faad_decode_audio(this, buf->decoder_flags & BUF_FLAG_FRAME_END ); |