mirror of https://github.com/mpv-player/mpv
av_log: print FFmpeg version
The individual library versionsd are pretty useless. This will actually tell us at least the git hash or git tag of the FFmpeg build.
This commit is contained in:
parent
a609877f00
commit
5446637e99
|
@ -786,6 +786,12 @@ api_statement_check \
|
||||||
libavutil/frame.h \
|
libavutil/frame.h \
|
||||||
'enum AVFrameSideDataType type = AV_FRAME_DATA_SKIP_SAMPLES'
|
'enum AVFrameSideDataType type = AV_FRAME_DATA_SKIP_SAMPLES'
|
||||||
|
|
||||||
|
api_statement_check \
|
||||||
|
"libavutil av_version_info()" \
|
||||||
|
HAVE_AV_VERSION_INFO \
|
||||||
|
libavutil/avutil.h \
|
||||||
|
'const char *x = av_version_info()'
|
||||||
|
|
||||||
check_pkg_config "libavfilter" $_libavfilter LIBAVFILTER 'libavfilter >= 5.0.0'
|
check_pkg_config "libavfilter" $_libavfilter LIBAVFILTER 'libavfilter >= 5.0.0'
|
||||||
|
|
||||||
check_pkg_config "libavdevice" $_libavdevice LIBAVDEVICE 'libavdevice >= 55.0.0'
|
check_pkg_config "libavdevice" $_libavdevice LIBAVDEVICE 'libavdevice >= 55.0.0'
|
||||||
|
|
|
@ -239,6 +239,10 @@ void print_libav_versions(struct mp_log *log, int v)
|
||||||
"expose subtle ABI compatibility issues\nand can lead to "
|
"expose subtle ABI compatibility issues\nand can lead to "
|
||||||
"misbehavior and crashes.\n", LIB_PREFIX);
|
"misbehavior and crashes.\n", LIB_PREFIX);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HAVE_AV_VERSION_INFO
|
||||||
|
mp_msg(log, v, "%s version: %s\n", LIB_PREFIX, av_version_info());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef V
|
#undef V
|
||||||
|
|
6
wscript
6
wscript
|
@ -437,6 +437,12 @@ FFmpeg/Libav libraries. You need at least {0}. Aborting.".format(libav_versions_
|
||||||
'func': check_statement('libavutil/pixfmt.h',
|
'func': check_statement('libavutil/pixfmt.h',
|
||||||
'int x = AV_PIX_FMT_MMAL',
|
'int x = AV_PIX_FMT_MMAL',
|
||||||
use='libav'),
|
use='libav'),
|
||||||
|
}, {
|
||||||
|
'name': 'av-version-info',
|
||||||
|
'desc': 'libavtuil av_version_info()',
|
||||||
|
'func': check_statement('libavutil/avutil.h',
|
||||||
|
'const char *x = av_version_info()',
|
||||||
|
use='libav'),
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue