From 44401158e8198635de1e1f7a4369113179b8937b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 4 Jan 2012 21:46:54 +0100 Subject: [PATCH] input/ffmpeg: define AV_VERSION_INT if not present Support ancient ffmpeg versions. --- src/input/ffmpeg_input_plugin.c | 4 ++++ 1 file changed, 4 insertions(+) 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;