mirror of https://github.com/mpv-player/mpv
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:
parent
e3e1bdfb13
commit
6f0ed8e0b2
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue