Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2013/04/12 22:45:28... | ... |
@@ -41,7 +41,7 @@ typedef struct { |
41 | 41 |
} PermsContext; |
42 | 42 |
|
43 | 43 |
#define OFFSET(x) offsetof(PermsContext, x) |
44 |
-#define FLAGS AV_OPT_FLAG_FILTERING_PARAM |
|
44 |
+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_VIDEO_PARAM |
|
45 | 45 |
|
46 | 46 |
static const AVOption options[] = { |
47 | 47 |
{ "mode", "select permissions mode", OFFSET(mode), AV_OPT_TYPE_INT, {.i64 = MODE_NONE}, MODE_NONE, NB_MODES-1, FLAGS, "mode" }, |
... | ... |
@@ -80,7 +80,7 @@ typedef struct { |
80 | 80 |
} SendCmdContext; |
81 | 81 |
|
82 | 82 |
#define OFFSET(x) offsetof(SendCmdContext, x) |
83 |
-#define FLAGS AV_OPT_FLAG_FILTERING_PARAM |
|
83 |
+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_VIDEO_PARAM |
|
84 | 84 |
static const AVOption options[] = { |
85 | 85 |
{ "commands", "set commands", OFFSET(commands_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS }, |
86 | 86 |
{ "c", "set commands", OFFSET(commands_str), AV_OPT_TYPE_STRING, {.str = NULL}, 0, 0, FLAGS }, |
... | ... |
@@ -70,7 +70,7 @@ typedef struct { |
70 | 70 |
} MovieContext; |
71 | 71 |
|
72 | 72 |
#define OFFSET(x) offsetof(MovieContext, x) |
73 |
-#define FLAGS AV_OPT_FLAG_FILTERING_PARAM |
|
73 |
+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_VIDEO_PARAM |
|
74 | 74 |
|
75 | 75 |
static const AVOption movie_options[]= { |
76 | 76 |
{ "filename", NULL, OFFSET(file_name), AV_OPT_TYPE_STRING, .flags = FLAGS }, |