Revision 76d4c167

View differences:

cmdutils.c
214 214
                    fprintf(stderr, "%s: failed to set value '%s' for option '%s'\n", argv[0], arg, opt);
215 215
                    exit(1);
216 216
                }
217
            } else if (po->flags & OPT_DUMMY) {
218
                /* Do nothing for this option */
217 219
            } else {
218 220
                po->u.func_arg(arg);
219 221
            }
cmdutils.h
122 122
#define OPT_FUNC2  0x0400
123 123
#define OPT_INT64  0x0800
124 124
#define OPT_EXIT   0x1000
125
#define OPT_DUMMY  0x2000
125 126
     union {
126 127
        void (*func_arg)(const char *); //FIXME passing error code as int return would be nicer then exit() in the func
127 128
        int *int_arg;
ffplay.c
3023 3023
#endif
3024 3024
    { "rdftspeed", OPT_INT | HAS_ARG| OPT_AUDIO | OPT_EXPERT, {(void*)&rdftspeed}, "rdft speed", "msecs" },
3025 3025
    { "default", OPT_FUNC2 | HAS_ARG | OPT_AUDIO | OPT_VIDEO | OPT_EXPERT, {(void*)opt_default}, "generic catch all option", "" },
3026
    { "i", OPT_DUMMY, NULL, "ffmpeg compatibility dummy option", ""},
3026 3027
    { NULL, },
3027 3028
};
3028 3029

  

Also available in: Unified diff