aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-05-16 12:23:19 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-05-16 12:23:19 +0200
commit68576d8903da21d0ae4e6f00ca3f71dd98f0b320 (patch)
tree4ead1d71f35846aa3dd5b041f5eeee2d437bd3c2
parent4c5191e51e2780fb19750b1eb4b4d0ba29165b1e (diff)
downloadextract-artwork-68576d8903da21d0ae4e6f00ca3f71dd98f0b320.tar.gz
extract-artwork-68576d8903da21d0ae4e6f00ca3f71dd98f0b320.tar.zst
update for ffmpeg 4.x
The function av_register_all() is deprecated since commit 0694d8702421e7aff1340038559c438b61bb30dd.
-rw-r--r--extract-artwork.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/extract-artwork.c b/extract-artwork.c
index c0e1af7..62c962e 100644
--- a/extract-artwork.c
+++ b/extract-artwork.c
@@ -23,7 +23,9 @@ int main(int argc, char **argv) {
}
/* libav */
+#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
av_register_all();
+#endif
/* only fatal messages from libav */
av_log_set_level(AV_LOG_FATAL);