[vlc-devel] commit: Fixed channel count index for aes3. (Laurent Aimar )

git version control git at videolan.org
Mon Aug 25 23:15:34 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Aug 25 23:16:37 2008 +0200| [f3306b5dc0c08b6c492b4867865c32a5e72201b8] | committer: Laurent Aimar 

Fixed channel count index for aes3.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f3306b5dc0c08b6c492b4867865c32a5e72201b8
---

 modules/codec/aes3.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/aes3.c b/modules/codec/aes3.c
index 1ee3663..48ae475 100644
--- a/modules/codec/aes3.c
+++ b/modules/codec/aes3.c
@@ -350,8 +350,8 @@ static block_t *Parse( decoder_t *p_dec, int *pi_frame_length, int *pi_bits,
     }
 
     p_dec->fmt_out.audio.i_channels = i_channels;
-    p_dec->fmt_out.audio.i_original_channels = pi_original_channels[i_channels];
-    p_dec->fmt_out.audio.i_physical_channels = pi_original_channels[i_channels] & AOUT_CHAN_PHYSMASK;
+    p_dec->fmt_out.audio.i_original_channels = pi_original_channels[i_channels/2-1];
+    p_dec->fmt_out.audio.i_physical_channels = pi_original_channels[i_channels/2-1] & AOUT_CHAN_PHYSMASK;
 
     *pi_frame_length = (p_block->i_buffer - AES3_HEADER_LEN) / ( (4+i_bits) * i_channels / 8 );
     *pi_bits = i_bits;




More information about the vlc-devel mailing list