aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-08-24 16:51:32 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-08-24 16:54:01 +0200
commit298832026b747af68f1a277cc26f1c3ecaa8a5f9 (patch)
tree970465cee432aaede2e67f9e57d289d54aec5893
parenta4d100c70367a434a2e8ea1dcf8bbb03f5367257 (diff)
downloadmpd-notification-298832026b747af68f1a277cc26f1c3ecaa8a5f9.tar.gz
mpd-notification-298832026b747af68f1a277cc26f1c3ecaa8a5f9.tar.zst
fix libav version check
Checking with LIBAVCODEC_VERSION_INT is stupid if we do not include libavcodec... Let's use LIBAVFORMAT_VERSION_INT instead. This broke with commit 06d4b9b7a160ee1fbdc419f16dd6b8c9277288a8. Fixes #42
-rw-r--r--mpd-notification.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpd-notification.c b/mpd-notification.c
index dd66dab..2315d65 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -353,7 +353,7 @@ int main(int argc, char ** argv) {
#ifdef HAVE_LIBAV
/* libav */
-#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
+#if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(58, 9, 100)
av_register_all();
#endif