]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Add a const qualifier
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 9 Jun 2022 14:57:51 +0000 (07:57 -0700)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Thu, 9 Jun 2022 14:57:51 +0000 (07:57 -0700)
rtp.c

diff --git a/rtp.c b/rtp.c
index c76e17b83fe2aaa0929eff37b985d60ba47d89b2..f20c983fd129a3b2f7ed37594f489a8791551b3d 100644 (file)
--- a/rtp.c
+++ b/rtp.c
@@ -2211,7 +2211,7 @@ void *rtp_buffered_audio_processor(void *arg) {
   // ideas and some code from https://rodic.fr/blog/libavcodec-tutorial-decode-audio-file/
   // with thanks
 
-  AVCodec *codec = avcodec_find_decoder(AV_CODEC_ID_AAC);
+  const AVCodec *codec = avcodec_find_decoder(AV_CODEC_ID_AAC);
   if (codec == NULL) {
     debug(1, "Can't find an AAC decoder!");
   }