ref: d62fb9059297241ddf29add7cd95f9475ad4f39d
parent: 9c59a30694782fe175fee5c54f2d008e9fbf489d
author: Paul Brossier <piem@piem.org>
date: Fri Sep 14 14:08:45 EDT 2018
src/io/source_avcodec.c: avoid deprecated call for ffmpeg >= 4.0
--- a/src/io/source_avcodec.c
+++ b/src/io/source_avcodec.c
@@ -143,8 +143,10 @@
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();