diff --git a/libavfilter/vf_xbr.c b/libavfilter/vf_xbr.c
index d143c622d3da0f5301ee50b1c026010c4873d252..e87f3e75855c77912661e18d29271324373a2cfb 100644
--- a/libavfilter/vf_xbr.c
+++ b/libavfilter/vf_xbr.c
@@ -50,8 +50,9 @@ typedef struct {
 } XBRContext;
 
 #define OFFSET(x) offsetof(XBRContext, x)
+#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
 static const AVOption xbr_options[] = {
-    { "n", "set scale factor", OFFSET(n), AV_OPT_TYPE_INT, {.i64 = 3}, 2, 4, },
+    { "n", "set scale factor", OFFSET(n), AV_OPT_TYPE_INT, {.i64 = 3}, 2, 4, .flags = FLAGS },
     { NULL }
 };