aboutsummaryrefslogtreecommitdiffstats
path: root/src/input/ffmpeg_input_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-01-04 21:46:54 +0100
committerMax Kellermann <max@duempel.org>2012-01-04 21:47:01 +0100
commit44401158e8198635de1e1f7a4369113179b8937b (patch)
tree0167d8399a737dc236f0de7eeb0ad53269f0455c /src/input/ffmpeg_input_plugin.c
parent97b4a6b51f146b16eeac9334605f8a6fff1c0af7 (diff)
downloadmpd-44401158e8198635de1e1f7a4369113179b8937b.tar.gz
mpd-44401158e8198635de1e1f7a4369113179b8937b.tar.xz
mpd-44401158e8198635de1e1f7a4369113179b8937b.zip
input/ffmpeg: define AV_VERSION_INT if not present
Support ancient ffmpeg versions.
Diffstat (limited to 'src/input/ffmpeg_input_plugin.c')
-rw-r--r--src/input/ffmpeg_input_plugin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/input/ffmpeg_input_plugin.c b/src/input/ffmpeg_input_plugin.c
index 0a6be29bc..27698a14b 100644
--- a/src/input/ffmpeg_input_plugin.c
+++ b/src/input/ffmpeg_input_plugin.c
@@ -32,6 +32,10 @@
#undef G_LOG_DOMAIN
#define G_LOG_DOMAIN "input_ffmpeg"
+#ifndef AV_VERSION_INT
+#define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c)
+#endif
+
struct input_ffmpeg {
struct input_stream base;