summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>