No need to explicitly specify the buffer here as it is only ever passed to av_log, so av_err2str can be used.
Showing the changes to libavdevice (1 of 1 file). Show all
Unified · Split
| @@ -291,11 +291,9 @@ static int audio_read_packet(AVFormatContext *context, AVPacket *pkt) · 290 unmodified lines | ||
| 291 | 291 | av_log(context, AV_LOG_ERROR, |
| 292 | 292 | "Input error: timed out when waiting for JACK process callback output\n"); |
| 293 | 293 | } else { |
| 294 | − char errbuf[128]; | |
| 295 | 294 | int ret = AVERROR(errno); |
| 296 | − av_strerror(ret, errbuf, sizeof(errbuf)); | |
| 297 | 295 | av_log(context, AV_LOG_ERROR, "Error while waiting for audio packet: %s\n", |
| 298 | − errbuf); | |
| 296 | + av_err2str(ret)); | |
| 299 | 297 | } |
| 300 | 298 | if (!self->client) |
| 301 | 299 | av_log(context, AV_LOG_ERROR, "Input error: JACK server is gone\n"); |