]> git.sesse.net Git - ffmpeg/commitdiff
avfilter: Add AV_OPT_FLAG_FILTERING_PARAM to where it was missing
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Apr 2016 14:49:00 +0000 (16:49 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Apr 2016 18:20:42 +0000 (20:20 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/split.c
libavfilter/vf_format.c
libavfilter/vf_scale_npp.c
libavfilter/vf_scale_vaapi.c

index c545fd6d39db2956d6b7d3ec5ec3cc9532c3d4cc..6cf4ab13bc45710af9e8ca1674c4a02d722c98bb 100644 (file)
@@ -95,7 +95,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
 }
 
 #define OFFSET(x) offsetof(SplitContext, x)
-#define FLAGS AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_VIDEO_PARAM
+#define FLAGS (AV_OPT_FLAG_AUDIO_PARAM | AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM)
 static const AVOption options[] = {
     { "outputs", "set number of outputs", OFFSET(nb_outputs), AV_OPT_TYPE_INT, { .i64 = 2 }, 1, INT_MAX, FLAGS },
     { NULL }
index 1fb3442af19dbc0eebeee9bfdc07fb4ce9781341..a57c99d7974b852fc3ebff4b597da27fadbbff08 100644 (file)
@@ -140,7 +140,7 @@ static int query_formats(AVFilterContext *ctx)
 
 #define OFFSET(x) offsetof(FormatContext, x)
 static const AVOption options[] = {
-    { "pix_fmts", "A '|'-separated list of pixel formats", OFFSET(pix_fmts), AV_OPT_TYPE_STRING, .flags = AV_OPT_FLAG_VIDEO_PARAM },
+    { "pix_fmts", "A '|'-separated list of pixel formats", OFFSET(pix_fmts), AV_OPT_TYPE_STRING, .flags = AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM },
     { NULL }
 };
 
index 7d2b5df233caf5cb52dfcc638c1a9af27f6b8dad..68cee3929bb9db85d21ed3372c167a17f2ff05f9 100644 (file)
@@ -600,7 +600,7 @@ fail:
 }
 
 #define OFFSET(x) offsetof(NPPScaleContext, x)
-#define FLAGS AV_OPT_FLAG_VIDEO_PARAM
+#define FLAGS (AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM)
 static const AVOption options[] = {
     { "w",      "Output video width",  OFFSET(w_expr),     AV_OPT_TYPE_STRING, { .str = "iw"   }, .flags = FLAGS },
     { "h",      "Output video height", OFFSET(h_expr),     AV_OPT_TYPE_STRING, { .str = "ih"   }, .flags = FLAGS },
index f7eb89182e3b83ee25f71ab9d276455badf6ac13..8dd5acfadab12b04dc7a422f28506ceb0918642e 100644 (file)
@@ -410,7 +410,7 @@ static av_cold void scale_vaapi_uninit(AVFilterContext *avctx)
 
 
 #define OFFSET(x) offsetof(ScaleVAAPIContext, x)
-#define FLAGS (AV_OPT_FLAG_VIDEO_PARAM)
+#define FLAGS (AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM)
 static const AVOption scale_vaapi_options[] = {
     { "w", "Output video width",
       OFFSET(output_width),  AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, .flags = FLAGS },