Re: [FFmpeg-devel] [PATCH 1/9] lavd/jack: increase buffer size for snprintf()

2021-11-26 Thread Andreas Rheinhardt
Anton Khirnov: > 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 forma

[FFmpeg-devel] [PATCH 1/9] lavd/jack: increase buffer size for snprintf()

2021-11-25 Thread Anton Khirnov
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-truncat