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

tests: lavfi/drawutils: use av_err2str

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

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

 libavfilter/tests/drawutils.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavfilter/tests/drawutils.c b/libavfilter/tests/drawutils.c
index 7fe53ddf31..2ee46f3a43 100644
--- a/libavfilter/tests/drawutils.c
+++ b/libavfilter/tests/drawutils.c
@@ -37,9 +37,7 @@ int main(void)
                (int)(16 - strlen(desc->name)), "");
         r = ff_draw_init(&draw, f, 0);
         if (r < 0) {
-            char buf[128];
-            av_strerror(r, buf, sizeof(buf));
-            printf("no: %s\n", buf);
+            printf("no: %s\n", av_err2str(r));
             continue;
         }
         ff_draw_color(&draw, &color, (uint8_t[]) { 1, 0, 0, 1 });

_______________________________________________
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