[FFmpeg-cvslog] avfilter: Filter options that are used for both video and audio should have both flags
Michael Niedermayer
git at videolan.org
Fri Apr 12 15:52:24 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Apr 12 15:45:28 2013 +0200| [292f68154b669d2d8e304b4bd7966938d4f9a393] | committer: Michael Niedermayer
avfilter: Filter options that are used for both video and audio should have both flags
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=292f68154b669d2d8e304b4bd7966938d4f9a393
---
libavfilter/f_perms.c | 2 +-
libavfilter/f_sendcmd.c | 2 +-
libavfilter/src_movie.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavfilter/f_perms.c b/libavfilter/f_perms.c
index 85683f9..8dc2ed8 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 092a9c0..bb5a693 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 7a3b988..4164cb4 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 },
More information about the ffmpeg-cvslog
mailing list