diff options
Diffstat (limited to 'audio/out/ao_oss.c')
-rw-r--r-- | audio/out/ao_oss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_oss.c b/audio/out/ao_oss.c index 1300a72043..f037812e70 100644 --- a/audio/out/ao_oss.c +++ b/audio/out/ao_oss.c @@ -315,7 +315,7 @@ static int reopen_device(struct ao *ao, bool allow_format_changes) } } - int try_formats[AF_FORMAT_COUNT]; + int try_formats[AF_FORMAT_COUNT + 1]; af_get_best_sample_formats(format, try_formats); for (int n = 0; try_formats[n]; n++) { format = try_formats[n]; |