From bdf3de90f6857d45430a1df4b039eba48fa1a928 Mon Sep 17 00:00:00 2001 From: Damien Fouilleul Date: Fri, 27 May 2005 18:05:35 +0000 Subject: [PATCH] vorbis.c: oops, I inverted channel order when encoding, should be fine now --- modules/codec/vorbis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/codec/vorbis.c b/modules/codec/vorbis.c index b2c91a3e10..2a46a76408 100644 --- a/modules/codec/vorbis.c +++ b/modules/codec/vorbis.c @@ -909,8 +909,8 @@ static block_t *Encode( encoder_t *p_enc, aout_buffer_t *p_aout_buf ) { for( j = 0 ; j < p_aout_buf->i_nb_samples ; j++ ) { - buffer[p_sys->pi_chan_table[i]][j]= ((float *)p_aout_buf->p_buffer) - [j * p_sys->i_channels + i ]; + buffer[i][j]= ((float *)p_aout_buf->p_buffer) + [j * p_sys->i_channels + p_sys->pi_chan_table[i]]; } } -- 2.39.2