Revision 9120e2cd

View differences:

cmdutils.c
346 346
#endif
347 347
}
348 348

  
349
static void maybe_print_config(const char *lib, const char *cfg)
350
{
351
    static int warned_cfg;
352

  
353
    if (strcmp(FFMPEG_CONFIGURATION, cfg)) {
354
        if (!warned_cfg) {
355
            fprintf(stderr, "  WARNING: library configuration mismatch\n");
356
            warned_cfg = 1;
357
        }
358
        fprintf(stderr, "  %-11s configuration: %s\n", lib, cfg);
359
    }
360
}
361

  
349 362
void show_banner(void)
350 363
{
351 364
    fprintf(stderr, "%s version " FFMPEG_VERSION ", Copyright (c) %d-%d Fabrice Bellard, et al.\n",
......
353 366
    fprintf(stderr, "  built on %s %s with %s %s\n",
354 367
            __DATE__, __TIME__, CC_TYPE, CC_VERSION);
355 368
    fprintf(stderr, "  configuration: " FFMPEG_CONFIGURATION "\n");
369
    maybe_print_config("libavutil",   avutil_configuration());
370
    maybe_print_config("libavcodec",  avcodec_configuration());
371
    maybe_print_config("libavformat", avformat_configuration());
372
    maybe_print_config("libavdevice", avdevice_configuration());
373
#if CONFIG_AVFILTER
374
    maybe_print_config("libavfilter", avfilter_configuration());
375
#endif
376
    maybe_print_config("libswscale",  swscale_configuration());
377
#if CONFIG_POSTPROC
378
    maybe_print_config("libpostproc", postproc_configuration());
379
#endif
356 380
    print_all_lib_versions(stderr, 1);
357 381
}
358 382

  

Also available in: Unified diff