From: Paul Brossier Date: Fri, 14 Sep 2018 16:08:45 +0000 (+0200) Subject: src/io/source_avcodec.c: avoid deprecated call for ffmpeg >= 4.0 X-Git-Tag: 0.4.7~25 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=d62fb9059297241ddf29add7cd95f9475ad4f39d;p=aubio.git src/io/source_avcodec.c: avoid deprecated call for ffmpeg >= 4.0 --- 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();