<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- ./src/AV/Output/AudioEncoder.cpp.orig	2024-08-08 14:14:12.891073468 -0500
+++ ./src/AV/Output/AudioEncoder.cpp	2024-08-08 14:15:56.952101391 -0500
@@ -69,11 +69,7 @@
 }
 
 unsigned int AudioEncoder::GetChannels() {
-#if LIBAVCODEC_VERSION_MAJOR &lt; 61
-	return GetCodecContext()-&gt;channels;
-#else
 	return GetCodecContext()-&gt;ch_layout.nb_channels;
-#endif
 }
 
 unsigned int AudioEncoder::GetSampleRate() {
@@ -110,13 +106,8 @@
 	}
 
 	codec_context-&gt;bit_rate = bit_rate;
-#if LIBAVCODEC_VERSION_MAJOR &lt; 61
-	codec_context-&gt;channels = channels;
-	codec_context-&gt;channel_layout = (channels == 1)? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;
-#else
 	codec_context-&gt;ch_layout.nb_channels = channels;
 	codec_context-&gt;ch_layout.u.mask = (channels == 1)? AV_CH_LAYOUT_MONO : AV_CH_LAYOUT_STEREO;
-#endif
 	codec_context-&gt;sample_rate = sample_rate;
 	codec_context-&gt;time_base.num = 1;
 	codec_context-&gt;time_base.den = sample_rate;
</pre></body></html>