projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c59a30
)
src/io/source_avcodec.c: avoid deprecated call for ffmpeg >= 4.0
author
Paul Brossier
<piem@piem.org>
Fri, 14 Sep 2018 16:08:45 +0000
(18:08 +0200)
committer
Paul Brossier
<piem@piem.org>
Fri, 14 Sep 2018 16:08:45 +0000
(18:08 +0200)
src/io/source_avcodec.c
patch
|
blob
|
history
diff --git
a/src/io/source_avcodec.c
b/src/io/source_avcodec.c
index
2186858
..
3631d44
100644
(file)
--- 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();