mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
lavfi/f_metadata: use av_err2str to simplify code
No need to explicitly specify the buffer here as it is only ever passed to av_log, so av_err2str can be used.
This commit is contained in:
@@ -276,10 +276,8 @@ static av_cold int init(AVFilterContext *ctx)
|
||||
}
|
||||
|
||||
if (ret < 0) {
|
||||
char buf[128];
|
||||
av_strerror(ret, buf, sizeof(buf));
|
||||
av_log(ctx, AV_LOG_ERROR, "Could not open %s: %s\n",
|
||||
s->file_str, buf);
|
||||
s->file_str, av_err2str(ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user