Browse Source

lavfi/sendcmd: add FLAGS to AVOption array.

tags/n1.1
Clément Bœsch 12 years ago
parent
commit
0b70ffa4ac
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      libavfilter/f_sendcmd.c

+ 6
- 6
libavfilter/f_sendcmd.c View File

@@ -80,12 +80,12 @@ typedef struct {
} SendCmdContext;

#define OFFSET(x) offsetof(SendCmdContext, x)
static const AVOption sendcmd_options[]= {
{ "commands", "set commands", OFFSET(commands_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 },
{ "c", "set commands", OFFSET(commands_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 },
{ "filename", "set commands file", OFFSET(commands_filename), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 },
{ "f", "set commands file", OFFSET(commands_filename), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0 },
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM
static const AVOption options[] = {
{ "commands", "set commands", OFFSET(commands_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS },
{ "c", "set commands", OFFSET(commands_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS },
{ "filename", "set commands file", OFFSET(commands_filename), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS },
{ "f", "set commands file", OFFSET(commands_filename), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS },
{NULL},
};



Loading…
Cancel
Save