av_log: use proper FFmpeg version extraction macros

Though not like they will or can never change them.
This commit is contained in:
wm4 2019-10-11 21:21:51 +02:00
parent cde94e83a9
commit 9683617559
1 changed files with 3 additions and 1 deletions

View File

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