]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Update rtp.c
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sun, 5 Sep 2021 08:09:44 +0000 (09:09 +0100)
committerGitHub <noreply@github.com>
Sun, 5 Sep 2021 08:09:44 +0000 (09:09 +0100)
Stop a deprecated warning.

rtp.c

diff --git a/rtp.c b/rtp.c
index e732457071bce8957de7de103c5395e810481eed..c4ac08b55278117f526fb55e22d3a49d60703fed 100644 (file)
--- a/rtp.c
+++ b/rtp.c
@@ -2115,7 +2115,11 @@ void *rtp_buffered_audio_processor(void *arg) {
   // initialize all muxers, demuxers and protocols for libavformat
   // (does nothing if called twice during the course of one program execution)
   // not needed in ffmpeg 4.0 and later... but still needed in ffmpeg 3.6 / ubuntu 18
+  
+  #pragma GCC diagnostic push
+  #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
   avcodec_register_all();
+  #pragma GCC diagnostic pop
 
   AVCodec *codec = avcodec_find_decoder(AV_CODEC_ID_AAC);
   if (codec == NULL) {