common/av_log: show also build version for FFmpeg

This commit is contained in:
Kacper Michajłow authored and Leo Izen committed 2025-03-03 10:44:44 -05:00
1 parent 630a036f64
commit 962fb5fde8
1 file changed
+6 -1
+6 -1
View File
@@ -32,6 +32,7 @@
#include "osdep/threads.h"
#include <libavutil/avutil.h>
#include <libavutil/ffversion.h>
#include <libavutil/log.h>
#include <libavutil/version.h>
@@ -205,7 +206,11 @@ void check_library_versions(struct mp_log *log, int v)
{"libswscale", LIBSWSCALE_VERSION_INT, swscale_version()},
};
mp_msg(log, v, "FFmpeg version: %s\n", av_version_info());
const char *runtime_version = av_version_info();
mp_msg(log, v, "FFmpeg version: %s", FFMPEG_VERSION);
if (strcmp(runtime_version, FFMPEG_VERSION))
mp_msg(log, v, " (runtime %s)", runtime_version);
mp_msg(log, v, "\n");
mp_msg(log, v, "FFmpeg library versions:\n");
for (int n = 0; n < MP_ARRAY_SIZE(libs); n++) {