ffmpeg | branch: master | Marvin Scholz <epira...@gmail.com> | Wed Apr  2 
01:26:33 2025 +0200| [d7d103c34c79abf0270f40e5a6a391d96da8751d] | committer: 
Marvin Scholz

lavfi/vf_xpsnr: use av_err2str

There is no need to explicitly specify the buffer, as it
is only ever passed to av_log, so av_err2str can be used.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d7d103c34c79abf0270f40e5a6a391d96da8751d
---

 libavfilter/vf_xpsnr.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavfilter/vf_xpsnr.c b/libavfilter/vf_xpsnr.c
index 3097db0878..34c875456e 100644
--- a/libavfilter/vf_xpsnr.c
+++ b/libavfilter/vf_xpsnr.c
@@ -506,10 +506,9 @@ static av_cold int init(AVFilterContext *ctx)
 
             if (!s->stats_file) {
                 const int err = AVERROR(errno);
-                char buf[128];
 
-                av_strerror(err, buf, sizeof(buf));
-                av_log(ctx, AV_LOG_ERROR, "Could not open statistics file %s: 
%s\n", s->stats_file_str, buf);
+                av_log(ctx, AV_LOG_ERROR, "Could not open statistics file %s: 
%s\n",
+                    s->stats_file_str, av_err2str(err));
                 return err;
             }
         }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to