diff options
Diffstat (limited to 'audio/out/ao_opensles.c')
-rw-r--r-- | audio/out/ao_opensles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_opensles.c b/audio/out/ao_opensles.c index 5357ab4920..76bd91cb91 100644 --- a/audio/out/ao_opensles.c +++ b/audio/out/ao_opensles.c @@ -136,7 +136,7 @@ static int init(struct ao *ao) pcm.formatType = SL_DATAFORMAT_PCM; pcm.numChannels = 2; - int compatible_formats[AF_FORMAT_COUNT]; + int compatible_formats[AF_FORMAT_COUNT + 1]; af_get_best_sample_formats(ao->format, compatible_formats); pcm.bitsPerSample = 0; for (int i = 0; compatible_formats[i] && !pcm.bitsPerSample; ++i) |