From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Sun, 5 Sep 2021 08:09:44 +0000 (+0100) Subject: Update rtp.c X-Git-Tag: 4.1-dev~4^2~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9b34cc367e9e59e9cb3b2d95214840f439a356b;p=thirdparty%2Fshairport-sync.git Update rtp.c Stop a deprecated warning. --- diff --git a/rtp.c b/rtp.c index e7324570..c4ac08b5 100644 --- 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) {