History

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.

Marvin Scholz committed 2 years ago

Commit 8fac5be1 parent 59244a01 file · +1 −3Browse files

Unified · Split

libavfilter/f_metadata.c+1−3
@@ -276,10 +276,8 @@ static av_cold int init(AVFilterContext *ctx) · 275 unmodified lines
276276 }
277277
278278 if (ret < 0) {
279− char buf[128];
280− av_strerror(ret, buf, sizeof(buf));
281279 av_log(ctx, AV_LOG_ERROR, "Could not open %s: %s\n",
282− s->file_str, buf);
280+ s->file_str, av_err2str(ret));
283281 return ret;
284282 }
285283

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t