summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-11 21:21:51 +0200
committerwm4 <wm4@nowhere>2019-10-11 21:21:51 +0200
commit9683617559b8d9cab5f6e70d90f8de399d8d75e0 (patch)
tree09549fdbfa11745b805150652765d30b0108ee20
parentcde94e83a9eccade65bb03c361b6ae04beb056b4 (diff)
downloadmpv-9683617559b8d9cab5f6e70d90f8de399d8d75e0.tar.bz2
mpv-9683617559b8d9cab5f6e70d90f8de399d8d75e0.tar.xz
av_log: use proper FFmpeg version extraction macros
Though not like they will or can never change them.
-rw-r--r--common/av_log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/av_log.c b/common/av_log.c
index afc66b0ed2..a9a5171795 100644
--- a/common/av_log.c
+++ b/common/av_log.c
@@ -177,7 +177,9 @@ void uninit_libav(struct mpv_global *global)
pthread_mutex_unlock(&log_lock);
}
-#define V(x) (x)>>16, (x)>>8 & 255, (x) & 255
+#define V(x) AV_VERSION_MAJOR(x), \
+ AV_VERSION_MINOR(x), \
+ AV_VERSION_MICRO(x)
struct lib {
const char *name;