From 0717bc7883de72b35249c8d9a575419f1d22a83c Mon Sep 17 00:00:00 2001
From: Leandro Moreira <leandro.ribeiro.moreira@gmail.com>
Date: Tue, 27 Feb 2024 14:40:22 -0300
Subject: [PATCH] export get_level_str log function

---
 libavutil/log.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/libavutil/log.h b/libavutil/log.h
index ab7ceab..e9aef00 100644
--- a/libavutil/log.h
+++ b/libavutil/log.h
@@ -359,6 +359,15 @@ void av_log_format_line(void *ptr, int level, const char *fmt, va_list vl,
 int av_log_format_line2(void *ptr, int level, const char *fmt, va_list vl,
                         char *line, int line_size, int *print_prefix);
 
+/**
+ * Return the log level string name
+ *
+ * @param  level The log level constant
+ *
+ * @return The log level string name
+ */
+const char* get_level_str(int level);
+
 /**
  * Skip repeated messages, this requires the user app to use av_log() instead of
  * (f)printf as the 2 would otherwise interfere and lead to
-- 
2.43.2

