[vlc-commits] aout_DecNew: Use AOUT_CHAN_MAX

Rémi Denis-Courmont git at videolan.org
Tue Mar 6 20:04:26 CET 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Mar  6 21:04:11 2012 +0200| [6e270e35dec56e260b5abb33101627265c825033] | committer: Rémi Denis-Courmont

aout_DecNew: Use AOUT_CHAN_MAX

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

 src/audio_output/dec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/audio_output/dec.c b/src/audio_output/dec.c
index 7d0316f..36749b0 100644
--- a/src/audio_output/dec.c
+++ b/src/audio_output/dec.c
@@ -50,7 +50,7 @@ int aout_DecNew( audio_output_t *p_aout,
                  const aout_request_vout_t *p_request_vout )
 {
     /* Sanitize audio format */
-    if( p_format->i_channels > 32 )
+    if( p_format->i_channels > AOUT_CHAN_MAX )
     {
         msg_Err( p_aout, "too many audio channels (%u)",
                  p_format->i_channels );



More information about the vlc-commits mailing list