[MPlayer-cvslog] CVS: main/libaf af_equalizer.c,1.6,1.7

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Mar 8 14:00:54 CET 2006


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libaf
In directory mail:/var2/tmp/cvs-serv10974

Modified Files:
	af_equalizer.c 
Log Message:
We start with 0, so ch (channel number) ==  AF_NCH is invalid, too (not just >)


Index: af_equalizer.c
===================================================================
RCS file: /cvsroot/mplayer/main/libaf/af_equalizer.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- af_equalizer.c	1 Dec 2005 03:14:21 -0000	1.6
+++ af_equalizer.c	8 Mar 2006 13:00:51 -0000	1.7
@@ -125,7 +125,7 @@
     float* gain = ((af_control_ext_t*)arg)->arg;
     int    ch   = ((af_control_ext_t*)arg)->ch;
     int    k;
-    if(ch > AF_NCH || ch < 0)
+    if(ch >= AF_NCH || ch < 0)
       return AF_ERROR;
 
     for(k = 0 ; k<KM ; k++)
@@ -137,7 +137,7 @@
     float* gain = ((af_control_ext_t*)arg)->arg;
     int    ch   = ((af_control_ext_t*)arg)->ch;
     int    k;
-    if(ch > AF_NCH || ch < 0)
+    if(ch >= AF_NCH || ch < 0)
       return AF_ERROR;
 
     for(k = 0 ; k<KM ; k++)




More information about the MPlayer-cvslog mailing list