diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-08-26 17:06:43 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-08-26 17:06:43 +0200 |
commit | 567fb2d4ff1270a3c425688bd410edadc12428a2 (patch) | |
tree | 93b92ebf01ce3526cb2d4eb74fe52d3502e5ecc5 /rate-lavc | |
parent | 2f29d651b5bd843411315861f2946dc64dbd4ac7 (diff) |
Fix build with recent ffmpeg
Add a check of pkgconfig libavcodec in configure script.
Since the header file was moved to <libavcodec/*>, its location has
to be checked in configure, too.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'rate-lavc')
-rw-r--r-- | rate-lavc/Makefile.am | 3 | ||||
-rw-r--r-- | rate-lavc/rate_lavcrate.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/rate-lavc/Makefile.am b/rate-lavc/Makefile.am index ca5b5d8..126cfcf 100644 --- a/rate-lavc/Makefile.am +++ b/rate-lavc/Makefile.am @@ -2,7 +2,8 @@ asound_module_rate_lavcrate_LTLIBRARIES = libasound_module_rate_lavcrate.la asound_module_rate_lavcratedir = @ALSA_PLUGIN_DIR@ -AM_CFLAGS = -Wall -g @ALSA_CFLAGS@ @AVCODEC_CFLAGS@ +AM_CFLAGS = -Wall -g @ALSA_CFLAGS@ @AVCODEC_CFLAGS@ \ + -DAVCODEC_HEADER="@AVCODEC_HEADER@" AM_LDFLAGS = -module -avoid-version -export-dynamic -no-undefined libasound_module_rate_lavcrate_la_SOURCES = rate_lavcrate.c diff --git a/rate-lavc/rate_lavcrate.c b/rate-lavc/rate_lavcrate.c index ce48495..ea2e2f5 100644 --- a/rate-lavc/rate_lavcrate.c +++ b/rate-lavc/rate_lavcrate.c @@ -19,7 +19,7 @@ #include <stdio.h> #include <alsa/asoundlib.h> #include <alsa/pcm_rate.h> -#include <ffmpeg/avcodec.h> +#include AVCODEC_HEADER #include "gcd.h" static int filter_size = 16; |