diff options
author | Mike Melanson <mike@multimedia.cx> | 2003-12-20 14:21:50 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2003-12-20 14:21:50 +0000 |
commit | 0f2f45af11290457c37c46961778623de7b48f9c (patch) | |
tree | 742adf05f9159c6e27a220b1f1a886153c7e0793 | |
parent | b286d0fd4af97c4157a9ca6f10b637505aed4e5c (diff) | |
download | xine-lib-0f2f45af11290457c37c46961778623de7b48f9c.tar.gz xine-lib-0f2f45af11290457c37c46961778623de7b48f9c.tar.bz2 |
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
-rw-r--r-- | src/libfaad/xine_decoder.c | 5 |
1 files changed, 4 insertions, 1 deletions
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")); |