Revision a0b3bcd9 ffmpeg.c

View differences:

ffmpeg.c
3499 3499
"even though both encoding and decoding are supported. For example, the h263\n"
3500 3500
"decoder corresponds to the h263 and h263p encoders, for file formats it is even\n"
3501 3501
"worse.\n");
3502
    av_exit(0);
3503 3502
}
3504 3503

  
3505 3504
static void parse_matrix_coeffs(uint16_t *dest, const char *str)
......
3574 3573
    av_opt_show(sws_opts, NULL);
3575 3574
}
3576 3575

  
3577
static void opt_show_help(void)
3578
{
3579
    show_help();
3580
    av_exit(0);
3581
}
3582

  
3583 3576
static void opt_target(const char *arg)
3584 3577
{
3585 3578
    int norm = -1;
......
3763 3756
    return 0;
3764 3757
}
3765 3758

  
3766
static void opt_show_license(void)
3767
{
3768
    show_license();
3769
    av_exit(0);
3770
}
3771

  
3772 3759
static void opt_show_version(void)
3773 3760
{
3774 3761
    show_version(program_name);
......
3777 3764

  
3778 3765
static const OptionDef options[] = {
3779 3766
    /* main options */
3780
    { "L", 0, {(void*)opt_show_license}, "show license" },
3781
    { "h", 0, {(void*)opt_show_help}, "show help" },
3767
    { "L", OPT_EXIT, {(void*)show_license}, "show license" },
3768
    { "h", OPT_EXIT, {(void*)show_help}, "show help" },
3782 3769
    { "version", 0, {(void*)opt_show_version}, "show version" },
3783
    { "formats", 0, {(void*)opt_show_formats}, "show available formats, codecs, protocols, ..." },
3770
    { "formats", OPT_EXIT, {(void*)opt_show_formats}, "show available formats, codecs, protocols, ..." },
3784 3771
    { "f", HAS_ARG, {(void*)opt_format}, "force format", "fmt" },
3785 3772
    { "i", HAS_ARG, {(void*)opt_input_file}, "input file name", "filename" },
3786 3773
    { "y", OPT_BOOL, {(void*)&file_overwrite}, "overwrite output files" },

Also available in: Unified diff