diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2014-04-22 11:55:06 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2014-04-22 11:55:06 +0200 |
commit | fc12245b0398ac0422edf7badc12fd30746a4bb5 (patch) | |
tree | 2f452cd66ec9548ef519519654f37d9e9f51f6b3 | |
parent | 4d8ad7d87072bc1631d0b949930f4869e56b7b99 (diff) | |
download | pianobar-windows-fc12245b0398ac0422edf7badc12fd30746a4bb5.tar.gz pianobar-windows-fc12245b0398ac0422edf7badc12fd30746a4bb5.tar.bz2 pianobar-windows-fc12245b0398ac0422edf7badc12fd30746a4bb5.zip |
player: Add missing header for ffmpeg1.2
Closes #441.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | src/player.c | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -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> |