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

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

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

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