summaryrefslogtreecommitdiffstats
path: root/libaf
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-03-04 19:39:16 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-03-04 19:39:16 +0000
commitd30a992d155be51748f0922a65e33d0859cb9f96 (patch)
tree0bde4382efd344357251943d17275ff4c2b8b09c /libaf
parent162310efe9d7d4be6fb43a4ba793fbdc12188381 (diff)
downloadmpv-d30a992d155be51748f0922a65e33d0859cb9f96.tar.bz2
mpv-d30a992d155be51748f0922a65e33d0859cb9f96.tar.xz
10l - replace 6 with AF_NCH
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12009 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf')
-rw-r--r--libaf/af_channels.c2
-rw-r--r--libaf/af_pan.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libaf/af_channels.c b/libaf/af_channels.c
index c1dcf0f130..7849aa783a 100644
--- a/libaf/af_channels.c
+++ b/libaf/af_channels.c
@@ -171,7 +171,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,"[channels] The number of output channels must be"
" between 1 and %i. Current value is %i\n",AF_NCH,((int*)arg)[0]);
return AF_ERROR;
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;