vcomp/lavc version: print ver from run-time linked

Do print the runtime lavc version instead the one from headers, that
may differ (minor and patch only).
This commit is contained in:
Martin Pulec
2025-03-24 16:53:48 +01:00
parent 28bb5609d6
commit d0bbce5af9

View File

@@ -433,7 +433,10 @@ void usage(bool full) {
}
col() << "\nUse '" << SBOLD("-c libavcodec:encoder=<enc>:help") << "' to display encoder specific options, works on decoders as well (also use keyword \"encoder\").\n";
col() << "\n";
col() << "Libavcodec version (linked): " << SBOLD(LIBAVCODEC_IDENT) << "\n";
const unsigned lavc_ver = avcodec_version();
color_printf("Libavcodec version (linked): " TBOLD("%d.%d.%d") "\n",
AV_VERSION_MAJOR(lavc_ver), AV_VERSION_MINOR(lavc_ver),
AV_VERSION_MICRO(lavc_ver));
const char *swscale = "no";
#ifdef HAVE_SWSCALE
swscale = "yes";