From: Mao Liu <1684060+mao-liu@users.noreply.github.com> Date: Sat, 4 Sep 2021 14:31:15 +0000 (+0000) Subject: small change to fix codec loading for ubuntu-18/ffmpeg-3.4 X-Git-Tag: 4.1-dev~4^2~13^2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1284%2Fhead;p=thirdparty%2Fshairport-sync.git small change to fix codec loading for ubuntu-18/ffmpeg-3.4 --- diff --git a/rtp.c b/rtp.c index e074e113..e7324570 100644 --- a/rtp.c +++ b/rtp.c @@ -2114,8 +2114,8 @@ 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... - // av_register_all(); + // not needed in ffmpeg 4.0 and later... but still needed in ffmpeg 3.6 / ubuntu 18 + avcodec_register_all(); AVCodec *codec = avcodec_find_decoder(AV_CODEC_ID_AAC); if (codec == NULL) {