aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-04-12 15:45:28 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-04-12 15:45:28 +0200
commit292f68154b669d2d8e304b4bd7966938d4f9a393 (patch)
treea2c2426b2e4aac197d6da14a383e94998a9f3e5d /libavfilter
parentf81a8e89a1c2819bc0b39153023188f955d3c52c (diff)
downloadffmpeg-292f68154b669d2d8e304b4bd7966938d4f9a393.tar.gz
avfilter: Filter options that are used for both video and audio should have both flags
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/f_perms.c2
-rw-r--r--libavfilter/f_sendcmd.c2
-rw-r--r--libavfilter/src_movie.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/f_perms.c b/libavfilter/f_perms.c
index 85683f93d7..8dc2ed86e0 100644
--- a/libavfilter/f_perms.c
+++ b/libavfilter/f_perms.c
@@ -41,7 +41,7 @@ typedef struct {
} PermsContext;
#define OFFSET(x) offsetof(PermsContext, x)
-#define FLAGS AV_OPT_FLAG_FILTERING_PARAM
+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_VIDEO_PARAM
static const AVOption options[] = {
{ "mode", "select permissions mode", OFFSET(mode), AV_OPT_TYPE_INT, {.i64 = MODE_NONE}, MODE_NONE, NB_MODES-1, FLAGS, "mode" },
diff --git a/libavfilter/f_sendcmd.c b/libavfilter/f_sendcmd.c
index 092a9c0e00..bb5a693fe5 100644
--- a/libavfilter/f_sendcmd.c
+++ b/libavfilter/f_sendcmd.c
@@ -80,7 +80,7 @@ typedef struct {
} SendCmdContext;
#define OFFSET(x) offsetof(SendCmdContext, x)
-#define FLAGS AV_OPT_FLAG_FILTERING_PARAM
+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_VIDEO_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 },
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index 7a3b988c7c..4164cb4c5f 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -70,7 +70,7 @@ typedef struct {
} MovieContext;
#define OFFSET(x) offsetof(MovieContext, x)
-#define FLAGS AV_OPT_FLAG_FILTERING_PARAM
+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM | AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_VIDEO_PARAM
static const AVOption movie_options[]= {
{ "filename", NULL, OFFSET(file_name), AV_OPT_TYPE_STRING, .flags = FLAGS },