Skip to content

Commit

Permalink
player: Add missing header for ffmpeg1.2
Browse files Browse the repository at this point in the history
Closes #441.
  • Loading branch information
PromyLOPh committed Apr 22, 2014
1 parent 4d8ad7d commit fc12245
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions src/player.c
Expand Up @@ -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>

Expand Down

0 comments on commit fc12245

Please sign in to comment.