diff options
author | Marvin Scholz <epirat07@gmail.com> | 2024-09-08 20:01:15 +0200 |
---|---|---|
committer | Marvin Scholz <epirat07@gmail.com> | 2024-09-13 00:21:02 +0200 |
commit | 29d7ed089eb3bba470ca6aa7b5005c59c5ddf8d7 (patch) | |
tree | ede3b293d245d5c4b6f9a7c18a4737f386d857a9 /libavfilter | |
parent | 4c6d07dd286562a78ac0c74a68bdb85a8e218423 (diff) | |
download | ffmpeg-29d7ed089eb3bba470ca6aa7b5005c59c5ddf8d7.tar.gz |
lavfi/vf_psnr: 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.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_psnr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/vf_psnr.c b/libavfilter/vf_psnr.c index 1f02811806..4a5db5df23 100644 --- a/libavfilter/vf_psnr.c +++ b/libavfilter/vf_psnr.c @@ -290,10 +290,8 @@ static av_cold int init(AVFilterContext *ctx) s->stats_file = avpriv_fopen_utf8(s->stats_file_str, "w"); if (!s->stats_file) { int err = AVERROR(errno); - char buf[128]; - 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; } } |