From 229558581183265e40767066db5b6aa99c8818b1 Mon Sep 17 00:00:00 2001 From: James Stembridge Date: Mon, 26 Jan 2004 22:33:08 +0000 Subject: 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 --- src/libfaad/xine_decoder.c | 6 +++--- 1 file 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 ); -- cgit v1.2.3