History

lavfi/vf_ssim360: 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 c6ab95d1 parent 990b80c1 file · +1 −4Browse files

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

Unified · Split

libavfilter/vf_ssim360.c+1−4
@@ -1320,12 +1320,9 @@ static av_cold int init(AVFilterContext *ctx) · 1319 unmodified lines
13201320 } else {
13211321 s->stats_file = avpriv_fopen_utf8(s->stats_file_str, "w");
13221322 if (!s->stats_file) {
1323− char buf[128];
1324−
13251323 err = AVERROR(errno);
1326− av_strerror(err, buf, sizeof(buf));
13271324 av_log(ctx, AV_LOG_ERROR, "Could not open stats file %s: %s\n",
1328− s->stats_file_str, buf);
1325+ s->stats_file_str, av_err2str(err));
13291326 return err;
13301327 }
13311328 }

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