From 298832026b747af68f1a277cc26f1c3ecaa8a5f9 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 24 Aug 2022 16:51:32 +0200 Subject: 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 --- mpd-notification.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2