diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-11-25 11:06:54 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-12-07 11:16:14 +0100 |
commit | 007819a5bc0d3c01c0de26d9e1c6f909877e7c45 (patch) | |
tree | 39ee14d5f0c0f0ed8c3a4051cfa4a1204741693f /doc/APIchanges | |
parent | 6fc0fc5441e00b2cbc28f5e5f7e2a8f97c73f822 (diff) | |
download | ffmpeg-007819a5bc0d3c01c0de26d9e1c6f909877e7c45.tar.gz |
lavd/jack: increase buffer size for snprintf()
Maximum output size with a 32-bit int is 17 bytes, or 26 with a 64-bit
int.
Silences the following gcc 10 warning:
src/libavdevice/jack.c: In function ‘audio_read_header’:
src/libavdevice/jack.c:171:45: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
171 | snprintf(str, sizeof(str), "input_%d", i + 1);
| ^
src/libavdevice/jack.c:171:9: note: ‘snprintf’ output between 8 and 17 bytes into a destination of size 16
171 | snprintf(str, sizeof(str), "input_%d", i + 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'doc/APIchanges')
0 files changed, 0 insertions, 0 deletions