diff options
Diffstat (limited to 'audio/out/ao_lavc.c')
-rw-r--r-- | audio/out/ao_lavc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_lavc.c b/audio/out/ao_lavc.c index f247cba12e..830fbf9b72 100644 --- a/audio/out/ao_lavc.c +++ b/audio/out/ao_lavc.c @@ -72,7 +72,7 @@ static bool supports_format(AVCodec *codec, int format) static void select_format(struct ao *ao, AVCodec *codec) { - int formats[AF_FORMAT_COUNT]; + int formats[AF_FORMAT_COUNT + 1]; af_get_best_sample_formats(ao->format, formats); for (int n = 0; formats[n]; n++) { |