diff options
-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> |