From d62fb9059297241ddf29add7cd95f9475ad4f39d Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 14 Sep 2018 18:08:45 +0200 Subject: [PATCH] src/io/source_avcodec.c: avoid deprecated call for ffmpeg >= 4.0 --- src/io/source_avcodec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/io/source_avcodec.c b/src/io/source_avcodec.c index 21868588..3631d44e 100644 --- a/src/io/source_avcodec.c +++ b/src/io/source_avcodec.c @@ -143,8 +143,10 @@ aubio_source_avcodec_t * new_aubio_source_avcodec(const char_t * path, uint_t sa s->path = AUBIO_ARRAY(char_t, strnlen(path, PATH_MAX) + 1); strncpy(s->path, path, strnlen(path, PATH_MAX) + 1); +#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58,0,0) // register all formats and codecs av_register_all(); +#endif if (aubio_source_avcodec_has_network_url(s)) { avformat_network_init(); -- 2.11.0