summaryrefslogtreecommitdiffstats
path: root/libaf/af_pan.c
diff options
context:
space:
mode:
Diffstat (limited to 'libaf/af_pan.c')
-rw-r--r--libaf/af_pan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libaf/af_pan.c b/libaf/af_pan.c
index 8398e169cf..9427303eb2 100644
--- a/libaf/af_pan.c
+++ b/libaf/af_pan.c
@@ -96,7 +96,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
// Reinit must be called after this function has been called
// Sanity check
- if(((int*)arg)[0] <= 0 || ((int*)arg)[0] > 6){
+ if(((int*)arg)[0] <= 0 || ((int*)arg)[0] > AF_NCH){
af_msg(AF_MSG_ERROR,"[pan] The number of output channels must be"
" between 1 and %i. Current value is %i\n",AF_NCH,((int*)arg)[0]);
return AF_ERROR;