Print version on stdout

Refs b25404ee4b
This commit is contained in:
Romain Vimont 2022-01-27 21:14:33 +01:00
parent b546c33eff
commit 8ea6fb1f0f

View file

@ -17,22 +17,22 @@
static void static void
print_version(void) { print_version(void) {
fprintf(stderr, "\ndependencies:\n"); printf("\ndependencies:\n");
fprintf(stderr, " - SDL %d.%d.%d\n", SDL_MAJOR_VERSION, SDL_MINOR_VERSION, printf(" - SDL %d.%d.%d\n", SDL_MAJOR_VERSION, SDL_MINOR_VERSION,
SDL_PATCHLEVEL); SDL_PATCHLEVEL);
fprintf(stderr, " - libavcodec %d.%d.%d\n", LIBAVCODEC_VERSION_MAJOR, printf(" - libavcodec %d.%d.%d\n", LIBAVCODEC_VERSION_MAJOR,
LIBAVCODEC_VERSION_MINOR, LIBAVCODEC_VERSION_MINOR,
LIBAVCODEC_VERSION_MICRO); LIBAVCODEC_VERSION_MICRO);
fprintf(stderr, " - libavformat %d.%d.%d\n", LIBAVFORMAT_VERSION_MAJOR, printf(" - libavformat %d.%d.%d\n", LIBAVFORMAT_VERSION_MAJOR,
LIBAVFORMAT_VERSION_MINOR, LIBAVFORMAT_VERSION_MINOR,
LIBAVFORMAT_VERSION_MICRO); LIBAVFORMAT_VERSION_MICRO);
fprintf(stderr, " - libavutil %d.%d.%d\n", LIBAVUTIL_VERSION_MAJOR, printf(" - libavutil %d.%d.%d\n", LIBAVUTIL_VERSION_MAJOR,
LIBAVUTIL_VERSION_MINOR, LIBAVUTIL_VERSION_MINOR,
LIBAVUTIL_VERSION_MICRO); LIBAVUTIL_VERSION_MICRO);
#ifdef HAVE_V4L2 #ifdef HAVE_V4L2
fprintf(stderr, " - libavdevice %d.%d.%d\n", LIBAVDEVICE_VERSION_MAJOR, printf(" - libavdevice %d.%d.%d\n", LIBAVDEVICE_VERSION_MAJOR,
LIBAVDEVICE_VERSION_MINOR, LIBAVDEVICE_VERSION_MINOR,
LIBAVDEVICE_VERSION_MICRO); LIBAVDEVICE_VERSION_MICRO);
#endif #endif
} }