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