aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-04-15 12:33:42 -0700
committerChris Robinson <[email protected]>2016-04-15 12:33:42 -0700
commite27fad90dec951f75b40004dcd32470ca404921d (patch)
tree2f115cc40c6163c815448416f9b03d7c5fff267b /Alc
parentf4ff5fc106f39ad30cdf72eade4bade649777a85 (diff)
Fix possible out-of-bounds warning
Diffstat (limited to 'Alc')
-rw-r--r--Alc/panning.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/panning.c b/Alc/panning.c
index 9248bb86..a3b9b293 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -644,7 +644,7 @@ static void InitHQPanning(ALCdevice *device, const AmbDecConf *conf, const ALuin
if((conf->ChanMask & ~0x831b))
{
- count = (conf->ChanMask > 0xf) ? (conf->ChanMask > 0x1ff) ? 16 : 9 : 4;
+ count = (conf->ChanMask > 0xf) ? 9 : 4;
chanmap = Ambi3D;
}
else
@@ -662,7 +662,7 @@ static void InitHQPanning(ALCdevice *device, const AmbDecConf *conf, const ALuin
for(;i < MAX_OUTPUT_CHANNELS;i++)
device->Dry.ChannelName[i] = InvalidChannel;
SetChannelMap(device->Dry.ChannelName, device->Dry.AmbiCoeffs, chanmap, count,
- &device->Dry.NumChannels, AL_FALSE);
+ &device->Dry.NumChannels, AL_FALSE);
TRACE("Enabling %s-band %s-order%s ambisonic decoder\n",
(conf->FreqBands == 1) ? "single" : "dual",