diff options
Diffstat (limited to 'audio/out/ao_openal.c')
-rw-r--r-- | audio/out/ao_openal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_openal.c b/audio/out/ao_openal.c index 715ffddceb..6ae91162d3 100644 --- a/audio/out/ao_openal.c +++ b/audio/out/ao_openal.c @@ -197,7 +197,7 @@ static int init(struct ao *ao) ao->samplerate = freq; p->al_format = AL_FALSE; - int try_formats[AF_FORMAT_COUNT]; + int try_formats[AF_FORMAT_COUNT + 1]; af_get_best_sample_formats(ao->format, try_formats); for (int n = 0; try_formats[n]; n++) { p->al_format = get_al_format(try_formats[n]); |