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
1320 } else {1320 } else {
1321 s->stats_file = avpriv_fopen_utf8(s->stats_file_str, "w");1321 s->stats_file = avpriv_fopen_utf8(s->stats_file_str, "w");
1322 if (!s->stats_file) {1322 if (!s->stats_file) {
1323 char buf[128];
1324
1325 err = AVERROR(errno);1323 err = AVERROR(errno);
1326 av_strerror(err, buf, sizeof(buf));
1327 av_log(ctx, AV_LOG_ERROR, "Could not open stats file %s: %s\n",1324 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));
1329 return err;1326 return err;
1330 }1327 }
1331 }1328 }

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