mirror of
https://github.com/mpv-player/mpv
synced 2025-03-31 15:59:34 +00:00
We start with 0, so ch (channel number) == AF_NCH is invalid, too (not just >)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17775 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
df89f6c831
commit
6c232b95c4
@ -125,7 +125,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
|
||||
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 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
|
||||
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++)
|
||||
|
Loading…
Reference in New Issue
Block a user