input/ffmpeg: define AV_VERSION_INT if not present

Support ancient ffmpeg versions.
This commit is contained in:
Max Kellermann 2012-01-04 21:46:54 +01:00
parent 97b4a6b51f
commit 44401158e8
1 changed files with 4 additions and 0 deletions

View File

@ -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;