summaryrefslogtreecommitdiff
path: root/src/audio_dec
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio_dec')
-rw-r--r--src/audio_dec/ff_dvdata.h9
-rw-r--r--src/audio_dec/xine_a52_decoder.c6
2 files changed, 12 insertions, 3 deletions
diff --git a/src/audio_dec/ff_dvdata.h b/src/audio_dec/ff_dvdata.h
index fc99349d0..f1d7af260 100644
--- a/src/audio_dec/ff_dvdata.h
+++ b/src/audio_dec/ff_dvdata.h
@@ -27,8 +27,13 @@
#ifndef FFMPEG_DVDATA_H
#define FFMPEG_DVDATA_H
-#include <avcodec.h>
-#include <rational.h>
+#ifdef HAVE_FFMPEG_AVUTIL_H
+# include <avcodec.h>
+# include <rational.h>
+#else
+# include <libavcodec/avcodec.h>
+# include <libavutil/rational.h>
+#endif
/*
* DVprofile is used to express the differences between various
diff --git a/src/audio_dec/xine_a52_decoder.c b/src/audio_dec/xine_a52_decoder.c
index 053980d17..98d3f1a9a 100644
--- a/src/audio_dec/xine_a52_decoder.c
+++ b/src/audio_dec/xine_a52_decoder.c
@@ -62,7 +62,11 @@
#include <xine/buffer.h>
#include <xine/xineutils.h>
-#include <crc.h>
+#ifdef HAVE_FFMPEG_AVUTIL_H
+# include <crc.h>
+#else
+# include <libavutil/crc.h>
+#endif
#undef DEBUG_A52
#ifdef DEBUG_A52