summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2014-04-22 11:55:06 +0200
committerLars-Dominik Braun <lars@6xq.net>2014-04-22 11:55:06 +0200
commitfc12245b0398ac0422edf7badc12fd30746a4bb5 (patch)
tree2f452cd66ec9548ef519519654f37d9e9f51f6b3
parent4d8ad7d87072bc1631d0b949930f4869e56b7b99 (diff)
downloadpianobar-fc12245b0398ac0422edf7badc12fd30746a4bb5.tar.gz
pianobar-fc12245b0398ac0422edf7badc12fd30746a4bb5.tar.bz2
pianobar-fc12245b0398ac0422edf7badc12fd30746a4bb5.zip
player: Add missing header for ffmpeg1.2
Closes #441.
-rw-r--r--Makefile2
-rw-r--r--src/player.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a73e409..85594b4 100644
--- a/Makefile
+++ b/Makefile
@@ -94,7 +94,7 @@ EXTRA_CFLAGS:=-DHAVE_AVFILTER_GRAPH_SEND_COMMAND
else ifeq (${LIBAV}, ffmpeg2.1)
EXTRA_CFLAGS:=
else ifeq (${LIBAV}, ffmpeg1.2)
-EXTRA_CFLAGS:=-DHAVE_AV_BUFFERSINK_GET_BUFFER_REF
+EXTRA_CFLAGS:=-DHAVE_AV_BUFFERSINK_GET_BUFFER_REF -DHAVE_LIBAVFILTER_AVCODEC_H
else ifeq (${LIBAV}, libav10)
EXTRA_CFLAGS:=
else ifeq (${LIBAV}, libav9)
diff --git a/src/player.c b/src/player.c
index b8d0719..b82a3aa 100644
--- a/src/player.c
+++ b/src/player.c
@@ -39,6 +39,10 @@ THE SOFTWARE.
#include <libavfilter/avfiltergraph.h>
#include <libavfilter/buffersink.h>
#include <libavfilter/buffersrc.h>
+#ifdef HAVE_LIBAVFILTER_AVCODEC_H
+/* required by ffmpeg1.2 for avfilter_copy_buf_props */
+#include <libavfilter/avcodec.h>
+#endif
#include <libavutil/channel_layout.h>
#include <libavutil/opt.h>