diff options
author | Marvin Scholz <epirat07@gmail.com> | 2024-09-08 19:50:46 +0200 |
---|---|---|
committer | Marvin Scholz <epirat07@gmail.com> | 2024-09-13 00:19:20 +0200 |
commit | c6ab95d009f080a8f0beea5149ae8335186adbe1 (patch) | |
tree | 8858438976f4e8e447aaea85851acc50e3e510d7 | |
parent | 990b80c004baa921212ee6b900d4a56c86cd9e8d (diff) | |
download | ffmpeg-c6ab95d009f080a8f0beea5149ae8335186adbe1.tar.gz |
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.
-rw-r--r-- | libavfilter/vf_ssim360.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavfilter/vf_ssim360.c b/libavfilter/vf_ssim360.c index 57da2f3938..68bd7b4d78 100644 --- a/libavfilter/vf_ssim360.c +++ b/libavfilter/vf_ssim360.c @@ -1320,12 +1320,9 @@ static av_cold int init(AVFilterContext *ctx) } else { s->stats_file = avpriv_fopen_utf8(s->stats_file_str, "w"); if (!s->stats_file) { - char buf[128]; - err = AVERROR(errno); - av_strerror(err, buf, sizeof(buf)); av_log(ctx, AV_LOG_ERROR, "Could not open stats file %s: %s\n", - s->stats_file_str, buf); + s->stats_file_str, av_err2str(err)); return err; } } |