Commit 9a199040 authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi/showspectrum: add priv_class and flags to options

parent 7123e950
...@@ -47,10 +47,11 @@ typedef struct { ...@@ -47,10 +47,11 @@ typedef struct {
} ShowSpectrumContext; } ShowSpectrumContext;
#define OFFSET(x) offsetof(ShowSpectrumContext, x) #define OFFSET(x) offsetof(ShowSpectrumContext, x)
#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
static const AVOption showspectrum_options[] = { static const AVOption showspectrum_options[] = {
{ "size", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "640x480"}, 0, 0 }, { "size", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "640x480"}, 0, 0, FLAGS },
{ "s", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "640x480"}, 0, 0 }, { "s", "set video size", OFFSET(w), AV_OPT_TYPE_IMAGE_SIZE, {.str = "640x480"}, 0, 0, FLAGS },
{ NULL }, { NULL },
}; };
...@@ -311,4 +312,6 @@ AVFilter avfilter_avf_showspectrum = { ...@@ -311,4 +312,6 @@ AVFilter avfilter_avf_showspectrum = {
}, },
{ .name = NULL } { .name = NULL }
}, },
.priv_class = &showspectrum_class,
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment