summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2015-07-03 23:21:18 +0200
committerGravatar Christian Hesse <mail@eworm.de>2015-07-03 23:21:18 +0200
commit1006db07a7e8ec28f47a91d314775d380c71025f (patch)
tree0f7ca64b0e9c51052fed864dbbc9480857720087
parent360535171d457506deaad4210251939c08674a76 (diff)
downloadmpd-notification-1006db07a7e8ec28f47a91d314775d380c71025f.tar.gz
mpd-notification-1006db07a7e8ec28f47a91d314775d380c71025f.tar.zst
it is sufficient to link against libavformat
-rw-r--r--Makefile2
-rw-r--r--mpd-notification.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4d3260e..a3aec1a 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ RM := rm
CFLAGS += -std=c11 -O2 -Wall -Werror
CFLAGS += $(shell pkg-config --cflags --libs libmpdclient)
CFLAGS += $(shell pkg-config --cflags --libs libnotify)
-LIBAV_CFLAGS := $(shell pkg-config --cflags --libs libavcodec libavformat 2>/dev/null)
+LIBAV_CFLAGS := $(shell pkg-config --cflags --libs libavformat 2>/dev/null)
ifneq ($(LIBAV_CFLAGS),)
CFLAGS += -DHAVE_LIBAV $(LIBAV_CFLAGS)
endif
diff --git a/mpd-notification.h b/mpd-notification.h
index 159aef1..1da743d 100644
--- a/mpd-notification.h
+++ b/mpd-notification.h
@@ -15,7 +15,6 @@
#include <libnotify/notify.h>
#ifdef HAVE_LIBAV
-#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#endif