summaryrefslogtreecommitdiff
path: root/audiorecorder.c
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2014-04-26 23:29:18 +0200
committerJoerg Bornkessel <hd_brummy@gentoo.org>2014-04-26 23:29:18 +0200
commitd859d0cee8fb99763e223f781bd5172e09a7f511 (patch)
treec4b069117ebbc208a5136fa64ceea0fe0fe228e8 /audiorecorder.c
parenta237b9e8bb92f75d71964c7f45084319a9f63f36 (diff)
downloadvdr-plugin-audiorecorder-d859d0cee8fb99763e223f781bd5172e09a7f511.tar.gz
vdr-plugin-audiorecorder-d859d0cee8fb99763e223f781bd5172e09a7f511.tar.bz2
ffmpeg libav-9 compile fixes
Diffstat (limited to 'audiorecorder.c')
-rw-r--r--audiorecorder.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/audiorecorder.c b/audiorecorder.c
index d9a1609..58284ec 100644
--- a/audiorecorder.c
+++ b/audiorecorder.c
@@ -20,8 +20,12 @@
#include <iostream>
+#if defined(APIVERSNUM) && APIVERSNUM < 20000
+#error "VDR-2.0.0 API version or greater is required!"
+#endif
+
extern "C" {
- #include <avcodec.h>
+#include <libavcodec/avcodec.h>
}
// extern cChannels Channels;
@@ -174,7 +178,9 @@ bool cPluginAudiorecorder::Initialize(void)
bool cPluginAudiorecorder::Start(void)
{
/* initialize libavcodec */
+#if LIBAVCODEC_VERSION_MAJOR < 54
avcodec_init();
+#endif
avcodec_register_all();
probe_audio_codecs();