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 libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -276,10 +276,8 @@ static av_cold int init(AVFilterContext *ctx) · 275 unmodified lines | ||
| 276 | 276 | } |
| 277 | 277 | |
| 278 | 278 | if (ret < 0) { |
| 279 | − char buf[128]; | |
| 280 | − av_strerror(ret, buf, sizeof(buf)); | |
| 281 | 279 | av_log(ctx, AV_LOG_ERROR, "Could not open %s: %s\n", |
| 282 | − s->file_str, buf); | |
| 280 | + s->file_str, av_err2str(ret)); | |
| 283 | 281 | return ret; |
| 284 | 282 | } |
| 285 | 283 | |