From 0f2f45af11290457c37c46961778623de7b48f9c Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Sat, 20 Dec 2003 14:21:50 +0000 Subject: force raw AAC to be decoded as stereo; not a great idea, but it will serve until a better solution is found CVS patchset: 5927 CVS date: 2003/12/20 14:21:50 --- src/libfaad/xine_decoder.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libfaad/xine_decoder.c b/src/libfaad/xine_decoder.c index 04fc3e70b..4a9e45b95 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.23 2003/12/19 05:03:28 tmmm Exp $ + * $Id: xine_decoder.c,v 1.24 2003/12/20 14:21:50 tmmm Exp $ * */ @@ -254,6 +254,9 @@ static void faad_decode_data (audio_decoder_t *this_gen, buf_element_t *buf) { used = faacDecInit(this->faac_dec, this->buf, this->size, &this->rate, &this->num_channels); +// MAJOR HACK: faacDecInit always initializes a raw AAC stream as having +// 1 audio channel; hardcode it to 2 here because...just because... +this->num_channels = 2; if( used < 0 ) { xine_log (this->stream->xine, XINE_LOG_MSG, _("libfaad: libfaad faacDecInit() failed.\n")); -- cgit v1.2.3