audio: increase a buffer size

The buffer is written to in `audio_config_to_str_buf` using `snprintf`
with a `%s` formatting of a 128-byte buffer. This can overflow the
target buffer of 80 causing a truncated output.
This commit is contained in:
Ben Boeckel 2018-10-30 21:04:39 -04:00 committed by sfan5
parent e3e1bdfb13
commit 6f0ed8e0b2
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ static void reinit_audio_filters_and_output(struct MPContext *mpctx)
mp_audio_buffer_reinit_fmt(ao_c->ao_buffer, ao_format, &ao_channels,
ao_rate);
char tmp[80];
char tmp[192];
MP_INFO(mpctx, "AO: [%s] %s\n", ao_get_name(mpctx->ao),
audio_config_to_str_buf(tmp, sizeof(tmp), ao_rate, ao_format,
ao_channels));