]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
small change to fix codec loading for ubuntu-18/ffmpeg-3.4 1284/head
authorMao Liu <1684060+mao-liu@users.noreply.github.com>
Sat, 4 Sep 2021 14:31:15 +0000 (14:31 +0000)
committerMao Liu <1684060+mao-liu@users.noreply.github.com>
Sat, 4 Sep 2021 14:51:11 +0000 (14:51 +0000)
rtp.c

diff --git a/rtp.c b/rtp.c
index e074e113da1cf367a0beb62ad6c72d7ff31c735d..e732457071bce8957de7de103c5395e810481eed 100644 (file)
--- 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) {