<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- libav.h.orig	2023-05-31 12:25:59
+++ libav.h	2025-04-18 19:41:23
@@ -174,7 +174,11 @@
 #define lav_codec_tag(s) s-&gt;codecpar-&gt;codec_tag
 #define lav_sample_rate(s) s-&gt;codecpar-&gt;sample_rate
 #define lav_bit_rate(s) s-&gt;codecpar-&gt;bit_rate
+#if LIBAVUTIL_VERSION_MAJOR &gt;= 58
+#define lav_channels(s) s-&gt;codecpar-&gt;ch_layout.nb_channels
+#else
 #define lav_channels(s) s-&gt;codecpar-&gt;channels
+#endif
 #define lav_width(s) s-&gt;codecpar-&gt;width
 #define lav_height(s) s-&gt;codecpar-&gt;height
 #define lav_profile(s) s-&gt;codecpar-&gt;profile
</pre></body></html>